home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_emacs.idb / usr / freeware / share / emacs / 19.34 / lisp / view.elc.z / view.elc
Emacs Compiled Lisp  |  1998-10-28  |  13.2 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6b 77 7a 68 40 70 73 |piled by| kwzh@ps|
|00000020| 69 6c 6f 63 69 6e 2e 67 | 6e 75 2e 61 69 2e 6d 69 |ilocin.g|nu.ai.mi|
|00000030| 74 2e 65 64 75 20 6f 6e | 20 53 61 74 20 4a 75 6c |t.edu on| Sat Jul|
|00000040| 20 32 30 20 30 33 3a 31 | 37 3a 33 36 20 31 39 39 | 20 03:1|7:36 199|
|00000050| 36 0a 3b 3b 3b 20 66 72 | 6f 6d 20 66 69 6c 65 20 |6.;;; fr|om file |
|00000060| 2f 67 64 2f 67 6e 75 2f | 65 6d 61 63 73 2f 31 39 |/gd/gnu/|emacs/19|
|00000070| 2e 30 2f 6c 69 73 70 2f | 76 69 65 77 2e 65 6c 0a |.0/lisp/|view.el.|
|00000080| 3b 3b 3b 20 65 6d 61 63 | 73 20 76 65 72 73 69 6f |;;; emac|s versio|
|00000090| 6e 20 31 39 2e 33 31 2e | 39 36 2e 31 2e 0a 3b 3b |n 19.31.|96.1..;;|
|000000a0| 3b 20 62 79 74 65 63 6f | 6d 70 20 76 65 72 73 69 |; byteco|mp versi|
|000000b0| 6f 6e 20 46 53 46 20 32 | 2e 31 30 0a 3b 3b 3b 20 |on FSF 2|.10.;;; |
|000000c0| 6f 70 74 69 6d 69 7a 61 | 74 69 6f 6e 20 69 73 20 |optimiza|tion is |
|000000d0| 6f 6e 2e 0a 3b 3b 3b 20 | 74 68 69 73 20 66 69 6c |on..;;; |this fil|
|000000e0| 65 20 75 73 65 73 20 6f | 70 63 6f 64 65 73 20 77 |e uses o|pcodes w|
|000000f0| 68 69 63 68 20 64 6f 20 | 6e 6f 74 20 65 78 69 73 |hich do |not exis|
|00000100| 74 20 69 6e 20 45 6d 61 | 63 73 20 31 38 2e 0a 0a |t in Ema|cs 18...|
|00000110| 28 69 66 20 28 61 6e 64 | 20 28 62 6f 75 6e 64 70 |(if (and| (boundp|
|00000120| 20 27 65 6d 61 63 73 2d | 76 65 72 73 69 6f 6e 29 | 'emacs-|version)|
|00000130| 0a 09 20 28 6f 72 20 28 | 61 6e 64 20 28 62 6f 75 |.. (or (|and (bou|
|00000140| 6e 64 70 20 27 65 70 6f | 63 68 3a 3a 76 65 72 73 |ndp 'epo|ch::vers|
|00000150| 69 6f 6e 29 20 65 70 6f | 63 68 3a 3a 76 65 72 73 |ion) epo|ch::vers|
|00000160| 69 6f 6e 29 0a 09 20 20 | 20 20 20 28 73 74 72 69 |ion).. | (stri|
|00000170| 6e 67 2d 6c 65 73 73 70 | 20 65 6d 61 63 73 2d 76 |ng-lessp| emacs-v|
|00000180| 65 72 73 69 6f 6e 20 22 | 31 39 2e 32 39 22 29 29 |ersion "|19.29"))|
|00000190| 29 0a 20 20 20 20 28 65 | 72 72 6f 72 20 22 60 76 |). (e|rror "`v|
|000001a0| 69 65 77 2e 65 6c 27 20 | 77 61 73 20 63 6f 6d 70 |iew.el' |was comp|
|000001b0| 69 6c 65 64 20 66 6f 72 | 20 45 6d 61 63 73 20 31 |iled for| Emacs 1|
|000001c0| 39 2e 32 39 20 6f 72 20 | 6c 61 74 65 72 22 29 29 |9.29 or |later"))|
|000001d0| 0a 0a 0a 23 40 37 38 20 | 2a 54 68 65 20 6f 76 65 |...#@78 |*The ove|
|000001e0| 72 6c 61 79 20 66 61 63 | 65 20 75 73 65 64 20 66 |rlay fac|e used f|
|000001f0| 6f 72 20 68 69 67 68 6c | 69 67 68 74 69 6e 67 20 |or highl|ighting |
|00000200| 74 68 65 20 6d 61 74 63 | 68 20 66 6f 75 6e 64 20 |the matc|h found |
|00000210| 62 79 20 56 69 65 77 20 | 6d 6f 64 65 20 73 65 61 |by View |mode sea|
|00000220| 72 63 68 2e 1f 0a 28 64 | 65 66 76 61 72 20 76 69 |rch...(d|efvar vi|
|00000230| 65 77 2d 68 69 67 68 6c | 69 67 68 74 2d 66 61 63 |ew-highl|ight-fac|
|00000240| 65 20 28 71 75 6f 74 65 | 20 68 69 67 68 6c 69 67 |e (quote| highlig|
|00000250| 68 74 29 20 28 23 24 20 | 2e 20 2d 34 37 32 29 29 |ht) (#$ |. -472))|
|00000260| 0a 23 40 33 34 20 4e 6f | 6e 2d 6e 69 6c 20 69 66 |.#@34 No|n-nil if|
|00000270| 20 56 69 65 77 20 6d 6f | 64 65 20 69 73 20 65 6e | View mo|de is en|
|00000280| 61 62 6c 65 64 2e 1f 0a | 28 64 65 66 76 61 72 20 |abled...|(defvar |
|00000290| 76 69 65 77 2d 6d 6f 64 | 65 20 6e 69 6c 20 28 23 |view-mod|e nil (#|
|000002a0| 24 20 2e 20 36 31 34 29 | 29 0a 28 6d 61 6b 65 2d |$ . 614)|).(make-|
|000002b0| 76 61 72 69 61 62 6c 65 | 2d 62 75 66 66 65 72 2d |variable|-buffer-|
|000002c0| 6c 6f 63 61 6c 20 28 71 | 75 6f 74 65 20 76 69 65 |local (q|uote vie|
|000002d0| 77 2d 6d 6f 64 65 29 29 | 0a 23 40 31 39 39 20 4e |w-mode))|.#@199 N|
|000002e0| 6f 6e 2d 6e 69 6c 20 6d | 65 61 6e 73 20 73 63 72 |on-nil m|eans scr|
|000002f0| 6f 6c 6c 69 6e 67 20 70 | 61 73 74 20 74 68 65 20 |olling p|ast the |
|00000300| 65 6e 64 20 6f 66 20 62 | 75 66 66 65 72 20 65 78 |end of b|uffer ex|
|00000310| 69 74 73 20 56 69 65 77 | 20 6d 6f 64 65 2e 0a 53 |its View| mode..S|
|00000320| 6f 6d 65 20 63 6f 6d 6d | 61 6e 64 73 2c 20 73 75 |ome comm|ands, su|
|00000330| 63 68 20 61 73 20 5c 5b | 76 69 65 77 2d 66 69 6c |ch as \[|view-fil|
|00000340| 65 5d 2c 20 73 65 74 20 | 74 68 69 73 20 74 6f 20 |e], set |this to |
|00000350| 74 20 6c 6f 63 61 6c 6c | 79 3b 0a 74 68 65 20 6f |t locall|y;.the o|
|00000360| 6e 6c 79 20 77 61 79 20 | 74 6f 20 6f 76 65 72 72 |nly way |to overr|
|00000370| 69 64 65 20 74 68 61 74 | 20 69 73 20 74 6f 20 73 |ide that| is to s|
|00000380| 65 74 20 69 74 20 74 6f | 20 6e 69 6c 20 75 73 69 |et it to| nil usi|
|00000390| 6e 67 20 60 76 69 65 77 | 2d 6d 6f 64 65 2d 68 6f |ng `view|-mode-ho|
|000003a0| 6f 6b 27 2e 1f 0a 28 64 | 65 66 76 61 72 20 76 69 |ok'...(d|efvar vi|
|000003b0| 65 77 2d 6d 6f 64 65 2d | 61 75 74 6f 2d 65 78 69 |ew-mode-|auto-exi|
|000003c0| 74 20 6e 69 6c 20 28 23 | 24 20 2e 20 37 33 35 29 |t nil (#|$ . 735)|
|000003d0| 29 0a 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 c1 |).(byte-|code "..|
|000003e0| 21 88 c2 c3 21 84 5c 66 | 00 c4 13 c3 0d 42 15 c0 |!...!.\f|.....B..|
|000003f0| c3 21 88 c6 0d 42 15 c0 | c6 21 88 c2 c7 21 84 25 |.!...B..|.!...!.%|
|00000400| 00 c4 16 07 c7 0d 42 15 | c0 c7 21 88 c2 c8 21 84 |......B.|..!...!.|
|00000410| 36 00 c4 16 08 c8 0d 42 | 15 c0 c8 21 88 c2 c9 21 |6......B|...!...!|
|00000420| 84 47 00 c4 16 09 c9 0d | 42 15 c0 c9 21 88 c2 ca |.G......|B...!...|
|00000430| 21 84 58 00 c4 16 5c 6e | ca 0d 42 15 c0 ca 21 88 |!.X...\n|..B...!.|
|00000440| c2 cb 21 84 69 00 c4 16 | 0b cb 0d 42 15 c0 cb 21 |..!.i...|...B...!|
|00000450| 87 22 20 5b 6d 61 6b 65 | 2d 76 61 72 69 61 62 6c |." [make|-variabl|
|00000460| 65 2d 62 75 66 66 65 72 | 2d 6c 6f 63 61 6c 20 76 |e-buffer|-local v|
|00000470| 69 65 77 2d 6d 6f 64 65 | 2d 61 75 74 6f 2d 65 78 |iew-mode|-auto-ex|
|00000480| 69 74 20 62 6f 75 6e 64 | 70 20 76 69 65 77 2d 6f |it bound|p view-o|
|00000490| 6c 64 2d 62 75 66 66 65 | 72 2d 72 65 61 64 2d 6f |ld-buffe|r-read-o|
|000004a0| 6e 6c 79 20 6e 69 6c 20 | 63 75 72 72 65 6e 74 2d |nly nil |current-|
|000004b0| 6c 6f 61 64 2d 6c 69 73 | 74 20 76 69 65 77 2d 6f |load-lis|t view-o|
|000004c0| 6c 64 2d 48 65 6c 70 65 | 72 2d 72 65 74 75 72 6e |ld-Helpe|r-return|
|000004d0| 2d 62 6c 75 72 62 20 76 | 69 65 77 2d 73 63 72 6f |-blurb v|iew-scro|
|000004e0| 6c 6c 2d 73 69 7a 65 20 | 76 69 65 77 2d 6c 61 73 |ll-size |view-las|
|000004f0| 74 2d 72 65 67 65 78 70 | 20 76 69 65 77 2d 65 78 |t-regexp| view-ex|
|00000500| 69 74 2d 61 63 74 69 6f | 6e 20 76 69 65 77 2d 72 |it-actio|n view-r|
|00000510| 65 74 75 72 6e 2d 68 65 | 72 65 20 76 69 65 77 2d |eturn-he|re view-|
|00000520| 65 78 69 74 2d 70 6f 73 | 69 74 69 6f 6e 5d 20 32 |exit-pos|ition] 2|
|00000530| 29 0a 23 40 31 31 34 20 | 4f 76 65 72 6c 61 79 20 |).#@114 |Overlay |
|00000540| 75 73 65 64 20 74 6f 20 | 64 69 73 70 6c 61 79 20 |used to |display |
|00000550| 77 68 65 72 65 20 61 20 | 73 65 61 72 63 68 20 6f |where a |search o|
|00000560| 70 65 72 61 74 69 6f 6e | 20 66 6f 75 6e 64 20 69 |peration| found i|
|00000570| 74 73 20 6d 61 74 63 68 | 2e 0a 54 68 69 73 20 69 |ts match|..This i|
|00000580| 73 20 6c 6f 63 61 6c 20 | 69 6e 20 65 61 63 68 20 |s local |in each |
|00000590| 62 75 66 66 65 72 2c 20 | 6f 6e 63 65 20 69 74 20 |buffer, |once it |
|000005a0| 69 73 20 75 73 65 64 2e | 1f 0a 28 64 65 66 76 61 |is used.|..(defva|
|000005b0| 72 20 76 69 65 77 2d 6f | 76 65 72 6c 61 79 20 6e |r view-o|verlay n|
|000005c0| 69 6c 20 28 23 24 20 2e | 20 31 33 33 36 29 29 0a |il (#$ .| 1336)).|
|000005d0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 21 88 |(byte-co|de "..!.|
|000005e0| c2 0b 9e 84 0e 00 c4 0b | 42 13 c5 c6 21 84 17 00 |........|B...!...|
|000005f0| c7 16 06 c6 0e 08 42 16 | 08 0e 06 84 dc 00 c9 20 |......B.|....... |
|00000600| 16 06 ca 0e 06 cb cc 23 | 88 ca 0e 06 cd ce 23 88 |.......#|......#.|
|00000610| ca 0e 06 cf d0 23 88 ca | 0e 06 d1 d2 23 88 ca 0e |.....#..|....#...|
|00000620| 06 d3 d4 23 88 ca 0e 06 | d5 d4 23 88 ca 0e 06 d6 |...#....|..#.....|
|00000630| d2 23 88 ca 0e 06 d7 d8 | 23 88 ca 0e 06 d9 d8 23 |.#......|#......#|
|00000640| 88 ca 0e 06 da db 23 88 | ca 0e 06 dc dd 23 88 ca |......#.|.....#..|
|00000650| 0e 06 de df 23 88 ca 0e | 06 e0 e1 23 88 ca 0e 06 |....#...|...#....|
|00000660| e2 e3 23 88 ca 0e 06 e4 | e3 23 88 ca 0e 06 e5 e6 |..#.....|.#......|
|00000670| 23 88 ca 0e 06 e7 e8 23 | 88 ca 0e 06 e9 e8 23 88 |#......#|......#.|
|00000680| ca 0e 06 ea eb 23 88 ca | 0e 06 ec ed 23 88 ca 0e |.....#..|....#...|
|00000690| 06 ee ef 23 88 ca 0e 06 | f0 f1 23 88 ca 0e 06 f2 |...#....|..#.....|
|000006a0| ef 23 88 ca 0e 06 f3 f1 | 23 88 ca 0e 06 f4 f5 23 |.#......|#......#|
|000006b0| 88 ca 0e 06 f6 f7 23 88 | c2 0e 38 9e 84 ec 00 c2 |......#.|..8.....|
|000006c0| 0e 06 42 0e 38 42 16 38 | c7 87 22 20 5b 6d 61 6b |..B.8B.8|.." [mak|
|000006d0| 65 2d 76 61 72 69 61 62 | 6c 65 2d 62 75 66 66 65 |e-variab|le-buffe|
|000006e0| 72 2d 6c 6f 63 61 6c 20 | 76 69 65 77 2d 6f 76 65 |r-local |view-ove|
|000006f0| 72 6c 61 79 20 76 69 65 | 77 2d 6d 6f 64 65 20 6d |rlay vie|w-mode m|
|00000700| 69 6e 6f 72 2d 6d 6f 64 | 65 2d 61 6c 69 73 74 20 |inor-mod|e-alist |
|00000710| 28 76 69 65 77 2d 6d 6f | 64 65 20 22 20 56 69 65 |(view-mo|de " Vie|
|00000720| 77 22 29 20 62 6f 75 6e | 64 70 20 76 69 65 77 2d |w") boun|dp view-|
|00000730| 6d 6f 64 65 2d 6d 61 70 | 20 6e 69 6c 20 63 75 72 |mode-map| nil cur|
|00000740| 72 65 6e 74 2d 6c 6f 61 | 64 2d 6c 69 73 74 20 6d |rent-loa|d-list m|
|00000750| 61 6b 65 2d 6b 65 79 6d | 61 70 20 64 65 66 69 6e |ake-keym|ap defin|
|00000760| 65 2d 6b 65 79 20 22 71 | 22 20 76 69 65 77 2d 65 |e-key "q|" view-e|
|00000770| 78 69 74 20 22 3c 22 20 | 62 65 67 69 6e 6e 69 6e |xit "<" |beginnin|
|00000780| 67 2d 6f 66 2d 62 75 66 | 66 65 72 20 22 3e 22 20 |g-of-buf|fer ">" |
|00000790| 65 6e 64 2d 6f 66 2d 62 | 75 66 66 65 72 20 22 1b |end-of-b|uffer ".|
|000007a0| 76 22 20 56 69 65 77 2d | 73 63 72 6f 6c 6c 2d 6c |v" View-|scroll-l|
|000007b0| 69 6e 65 73 2d 62 61 63 | 6b 77 61 72 64 20 22 16 |ines-bac|kward ".|
|000007c0| 22 20 56 69 65 77 2d 73 | 63 72 6f 6c 6c 2d 6c 69 |" View-s|croll-li|
|000007d0| 6e 65 73 2d 66 6f 72 77 | 61 72 64 20 22 20 22 20 |nes-forw|ard " " |
|000007e0| 22 7f 22 20 22 5c 6e 22 | 20 56 69 65 77 2d 73 63 |"." "\n"| View-sc|
|000007f0| 72 6f 6c 6c 2d 6f 6e 65 | 2d 6d 6f 72 65 2d 6c 69 |roll-one|-more-li|
|00000800| 6e 65 20 22 0d 22 20 22 | 7a 22 20 56 69 65 77 2d |ne "." "|z" View-|
|00000810| 73 63 72 6f 6c 6c 2d 6c | 69 6e 65 73 2d 66 6f 72 |scroll-l|ines-for|
|00000820| 77 61 72 64 2d 73 65 74 | 2d 73 63 72 6f 6c 6c 2d |ward-set|-scroll-|
|00000830| 73 69 7a 65 20 22 67 22 | 20 56 69 65 77 2d 67 6f |size "g"| View-go|
|00000840| 74 6f 2d 6c 69 6e 65 20 | 22 3d 22 20 77 68 61 74 |to-line |"=" what|
|00000850| 2d 6c 69 6e 65 20 22 2e | 22 20 73 65 74 2d 6d 61 |-line ".|" set-ma|
|00000860| 72 6b 2d 63 6f 6d 6d 61 | 6e 64 20 22 27 22 20 56 |rk-comma|nd "'" V|
|00000870| 69 65 77 2d 62 61 63 6b | 2d 74 6f 2d 6d 61 72 6b |iew-back|-to-mark|
|00000880| 20 22 40 22 20 22 78 22 | 20 65 78 63 68 61 6e 67 | "@" "x"| exchang|
|00000890| 65 2d 70 6f 69 6e 74 2d | 61 6e 64 2d 6d 61 72 6b |e-point-|and-mark|
|000008a0| 20 22 68 22 20 64 65 73 | 63 72 69 62 65 2d 6d 6f | "h" des|cribe-mo|
|000008b0| 64 65 20 22 3f 22 20 22 | 73 22 20 69 73 65 61 72 |de "?" "|s" isear|
|000008c0| 63 68 2d 66 6f 72 77 61 | 72 64 20 22 72 22 20 69 |ch-forwa|rd "r" i|
|000008d0| 73 65 61 72 63 68 2d 62 | 61 63 6b 77 61 72 64 20 |search-b|ackward |
|000008e0| 22 2f 22 20 56 69 65 77 | 2d 73 65 61 72 63 68 2d |"/" View|-search-|
|000008f0| 72 65 67 65 78 70 2d 66 | 6f 72 77 61 72 64 20 22 |regexp-f|orward "|
|00000900| 5c 5c 22 20 56 69 65 77 | 2d 73 65 61 72 63 68 2d |\\" View|-search-|
|00000910| 72 65 67 65 78 70 2d 62 | 61 63 6b 77 61 72 64 20 |regexp-b|ackward |
|00000920| 22 1b 13 22 20 22 1b 12 | 22 20 22 6e 22 20 56 69 |".." "..|" "n" Vi|
|00000930| 65 77 2d 73 65 61 72 63 | 68 2d 6c 61 73 74 2d 72 |ew-searc|h-last-r|
|00000940| 65 67 65 78 70 2d 66 6f | 72 77 61 72 64 20 22 70 |egexp-fo|rward "p|
|00000950| 22 20 56 69 65 77 2d 73 | 65 61 72 63 68 2d 6c 61 |" View-s|earch-la|
|00000960| 73 74 2d 72 65 67 65 78 | 70 2d 62 61 63 6b 77 61 |st-regex|p-backwa|
|00000970| 72 64 20 6d 69 6e 6f 72 | 2d 6d 6f 64 65 2d 6d 61 |rd minor|-mode-ma|
|00000980| 70 2d 61 6c 69 73 74 5d | 20 34 29 0a 23 40 33 38 |p-alist]| 4).#@38|
|00000990| 31 20 56 69 65 77 20 46 | 49 4c 45 20 69 6e 20 56 |1 View F|ILE in V|
|000009a0| 69 65 77 20 6d 6f 64 65 | 2c 20 72 65 74 75 72 6e |iew mode|, return|
|000009b0| 69 6e 67 20 74 6f 20 70 | 72 65 76 69 6f 75 73 20 |ing to p|revious |
|000009c0| 62 75 66 66 65 72 20 77 | 68 65 6e 20 64 6f 6e 65 |buffer w|hen done|
|000009d0| 2e 0a 54 68 65 20 75 73 | 75 61 6c 20 45 6d 61 63 |..The us|ual Emac|
|000009e0| 73 20 63 6f 6d 6d 61 6e | 64 73 20 61 72 65 20 6e |s comman|ds are n|
|000009f0| 6f 74 20 61 76 61 69 6c | 61 62 6c 65 3b 20 69 6e |ot avail|able; in|
|00000a00| 73 74 65 61 64 2c 0a 61 | 20 73 70 65 63 69 61 6c |stead,.a| special|
|00000a10| 20 73 65 74 20 6f 66 20 | 63 6f 6d 6d 61 6e 64 73 | set of |commands|
|00000a20| 20 28 6d 6f 73 74 6c 79 | 20 6c 65 74 74 65 72 73 | (mostly| letters|
|00000a30| 20 61 6e 64 20 70 75 6e | 63 74 75 61 74 69 6f 6e | and pun|ctuation|
|00000a40| 29 0a 61 72 65 20 64 65 | 66 69 6e 65 64 20 66 6f |).are de|fined fo|
|00000a50| 72 20 6d 6f 76 69 6e 67 | 20 61 72 6f 75 6e 64 20 |r moving| around |
|00000a60| 69 6e 20 74 68 65 20 62 | 75 66 66 65 72 2e 0a 53 |in the b|uffer..S|
|00000a70| 70 61 63 65 20 73 63 72 | 6f 6c 6c 73 20 66 6f 72 |pace scr|olls for|
|00000a80| 77 61 72 64 2c 20 44 65 | 6c 65 74 65 20 73 63 72 |ward, De|lete scr|
|00000a90| 6f 6c 6c 73 20 62 61 63 | 6b 77 61 72 64 2e 0a 46 |olls bac|kward..F|
|00000aa0| 6f 72 20 6c 69 73 74 20 | 6f 66 20 61 6c 6c 20 56 |or list |of all V|
|00000ab0| 69 65 77 20 63 6f 6d 6d | 61 6e 64 73 2c 20 74 79 |iew comm|ands, ty|
|00000ac0| 70 65 20 3f 20 6f 72 20 | 68 20 77 68 69 6c 65 20 |pe ? or |h while |
|00000ad0| 76 69 65 77 69 6e 67 2e | 0a 0a 54 68 69 73 20 63 |viewing.|..This c|
|00000ae0| 6f 6d 6d 61 6e 64 20 72 | 75 6e 73 20 74 68 65 20 |ommand r|uns the |
|00000af0| 6e 6f 72 6d 61 6c 20 68 | 6f 6f 6b 20 60 76 69 65 |normal h|ook `vie|
|00000b00| 77 2d 6d 6f 64 65 2d 68 | 6f 6f 6b 27 2e 1f 0a 28 |w-mode-h|ook'...(|
|00000b10| 64 65 66 61 6c 69 61 73 | 20 27 76 69 65 77 2d 66 |defalias| 'view-f|
|00000b20| 69 6c 65 20 23 5b 28 66 | 69 6c 65 2d 6e 61 6d 65 |ile #[(f|ile-name|
|00000b30| 29 20 22 70 c0 09 21 c2 | 09 21 1b 1c 1d c6 0b 5c |) "p..!.|.!.....\|
|00000b40| 66 5c 22 88 c7 0d 5c 66 | 3f 85 1e 00 c8 0b 21 3f |f\"...\f|?.....!?|
|00000b50| 85 1e 00 c9 5c 22 2b 87 | 22 20 5b 67 65 74 2d 66 |....\"+.|" [get-f|
|00000b60| 69 6c 65 2d 62 75 66 66 | 65 72 20 66 69 6c 65 2d |ile-buff|er file-|
|00000b70| 6e 61 6d 65 20 66 69 6e | 64 2d 66 69 6c 65 2d 6e |name fin|d-file-n|
|00000b80| 6f 73 65 6c 65 63 74 20 | 62 75 66 2d 74 6f 2d 76 |oselect |buf-to-v|
|00000b90| 69 65 77 20 68 61 64 2d | 61 2d 62 75 66 20 6f 6c |iew had-|a-buf ol|
|00000ba0| 64 2d 62 75 66 20 73 77 | 69 74 63 68 2d 74 6f 2d |d-buf sw|itch-to-|
|00000bb0| 62 75 66 66 65 72 20 76 | 69 65 77 2d 6d 6f 64 65 |buffer v|iew-mode|
|00000bc0| 2d 65 6e 74 65 72 20 62 | 75 66 66 65 72 2d 6d 6f |-enter b|uffer-mo|
|00000bd0| 64 69 66 69 65 64 2d 70 | 20 6b 69 6c 6c 2d 62 75 |dified-p| kill-bu|
|00000be0| 66 66 65 72 5d 20 34 20 | 28 23 24 20 2e 20 32 34 |ffer] 4 |(#$ . 24|
|00000bf0| 35 30 29 20 22 66 56 69 | 65 77 20 66 69 6c 65 3a |50) "fVi|ew file:|
|00000c00| 20 22 5d 29 0a 23 40 33 | 39 34 20 56 69 65 77 20 | "]).#@3|94 View |
|00000c10| 46 49 4c 45 20 69 6e 20 | 56 69 65 77 20 6d 6f 64 |FILE in |View mod|
|00000c20| 65 20 69 6e 20 6f 74 68 | 65 72 20 77 69 6e 64 6f |e in oth|er windo|
|00000c30| 77 2e 0a 52 65 74 75 72 | 6e 20 74 6f 20 70 72 65 |w..Retur|n to pre|
|00000c40| 76 69 6f 75 73 20 62 75 | 66 66 65 72 20 77 68 65 |vious bu|ffer whe|
|00000c50| 6e 20 64 6f 6e 65 2e 0a | 54 68 65 20 75 73 75 61 |n done..|The usua|
|00000c60| 6c 20 45 6d 61 63 73 20 | 63 6f 6d 6d 61 6e 64 73 |l Emacs |commands|
|00000c70| 20 61 72 65 20 6e 6f 74 | 20 61 76 61 69 6c 61 62 | are not| availab|
|00000c80| 6c 65 3b 20 69 6e 73 74 | 65 61 64 2c 0a 61 20 73 |le; inst|ead,.a s|
|00000c90| 70 65 63 69 61 6c 20 73 | 65 74 20 6f 66 20 63 6f |pecial s|et of co|
|00000ca0| 6d 6d 61 6e 64 73 20 28 | 6d 6f 73 74 6c 79 20 6c |mmands (|mostly l|
|00000cb0| 65 74 74 65 72 73 20 61 | 6e 64 20 70 75 6e 63 74 |etters a|nd punct|
|00000cc0| 75 61 74 69 6f 6e 29 0a | 61 72 65 20 64 65 66 69 |uation).|are defi|
|00000cd0| 6e 65 64 20 66 6f 72 20 | 6d 6f 76 69 6e 67 20 61 |ned for |moving a|
|00000ce0| 72 6f 75 6e 64 20 69 6e | 20 74 68 65 20 62 75 66 |round in| the buf|
|00000cf0| 66 65 72 2e 0a 53 70 61 | 63 65 20 73 63 72 6f 6c |fer..Spa|ce scrol|
|00000d00| 6c 73 20 66 6f 72 77 61 | 72 64 2c 20 44 65 6c 65 |ls forwa|rd, Dele|
|00000d10| 74 65 20 73 63 72 6f 6c | 6c 73 20 62 61 63 6b 77 |te scrol|ls backw|
|00000d20| 61 72 64 2e 0a 46 6f 72 | 20 6c 69 73 74 20 6f 66 |ard..For| list of|
|00000d30| 20 61 6c 6c 20 56 69 65 | 77 20 63 6f 6d 6d 61 6e | all Vie|w comman|
|00000d40| 64 73 2c 20 74 79 70 65 | 20 3f 20 6f 72 20 68 20 |ds, type| ? or h |
|00000d50| 77 68 69 6c 65 20 76 69 | 65 77 69 6e 67 2e 0a 0a |while vi|ewing...|
|00000d60| 54 68 69 73 20 63 6f 6d | 6d 61 6e 64 20 72 75 6e |This com|mand run|
|00000d70| 73 20 74 68 65 20 6e 6f | 72 6d 61 6c 20 68 6f 6f |s the no|rmal hoo|
|00000d80| 6b 20 60 76 69 65 77 2d | 6d 6f 64 65 2d 68 6f 6f |k `view-|mode-hoo|
|00000d90| 6b 27 2e 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |k'...(de|falias '|
|00000da0| 76 69 65 77 2d 66 69 6c | 65 2d 6f 74 68 65 72 2d |view-fil|e-other-|
|00000db0| 77 69 6e 64 6f 77 20 23 | 5b 28 66 69 6c 65 2d 6e |window #|[(file-n|
|00000dc0| 61 6d 65 29 20 22 c0 20 | c1 5c 6e 21 c3 5c 6e 21 |ame) ". |.\n!.\n!|
|00000dd0| 1c 1d 1e 06 c7 5c 66 21 | 88 c8 0e 06 0d 3f 85 20 |.....\f!|.....?. |
|00000de0| 00 c9 5c 66 21 3f 85 20 | 00 ca 5c 22 2b 87 22 20 |..\f!?. |..\"+." |
|00000df0| 5b 63 75 72 72 65 6e 74 | 2d 77 69 6e 64 6f 77 2d |[current|-window-|
|00000e00| 63 6f 6e 66 69 67 75 72 | 61 74 69 6f 6e 20 67 65 |configur|ation ge|
|00000e10| 74 2d 66 69 6c 65 2d 62 | 75 66 66 65 72 20 66 69 |t-file-b|uffer fi|
|00000e20| 6c 65 2d 6e 61 6d 65 20 | 66 69 6e 64 2d 66 69 6c |le-name |find-fil|
|00000e30| 65 2d 6e 6f 73 65 6c 65 | 63 74 20 62 75 66 2d 74 |e-nosele|ct buf-t|
|00000e40| 6f 2d 76 69 65 77 20 68 | 61 64 2d 61 2d 62 75 66 |o-view h|ad-a-buf|
|00000e50| 20 6f 6c 64 2d 61 72 72 | 61 6e 67 65 6d 65 6e 74 | old-arr|angement|
|00000e60| 20 73 77 69 74 63 68 2d | 74 6f 2d 62 75 66 66 65 | switch-|to-buffe|
|00000e70| 72 2d 6f 74 68 65 72 2d | 77 69 6e 64 6f 77 20 76 |r-other-|window v|
|00000e80| 69 65 77 2d 6d 6f 64 65 | 2d 65 6e 74 65 72 20 62 |iew-mode|-enter b|
|00000e90| 75 66 66 65 72 2d 6d 6f | 64 69 66 69 65 64 2d 70 |uffer-mo|dified-p|
|00000ea0| 20 6b 69 6c 6c 2d 62 75 | 66 66 65 72 5d 20 34 20 | kill-bu|ffer] 4 |
|00000eb0| 28 23 24 20 2e 20 33 30 | 38 33 29 20 22 66 56 69 |(#$ . 30|83) "fVi|
|00000ec0| 65 77 20 66 69 6c 65 3a | 20 22 5d 29 0a 23 40 33 |ew file:| "]).#@3|
|00000ed0| 38 33 20 56 69 65 77 20 | 42 55 46 46 45 52 20 69 |83 View |BUFFER i|
|00000ee0| 6e 20 56 69 65 77 20 6d | 6f 64 65 2c 20 72 65 74 |n View m|ode, ret|
|00000ef0| 75 72 6e 69 6e 67 20 74 | 6f 20 70 72 65 76 69 6f |urning t|o previo|
|00000f00| 75 73 20 62 75 66 66 65 | 72 20 77 68 65 6e 20 64 |us buffe|r when d|
|00000f10| 6f 6e 65 2e 0a 54 68 65 | 20 75 73 75 61 6c 20 45 |one..The| usual E|
|00000f20| 6d 61 63 73 20 63 6f 6d | 6d 61 6e 64 73 20 61 72 |macs com|mands ar|
|00000f30| 65 20 6e 6f 74 20 61 76 | 61 69 6c 61 62 6c 65 3b |e not av|ailable;|
|00000f40| 20 69 6e 73 74 65 61 64 | 2c 0a 61 20 73 70 65 63 | instead|,.a spec|
|00000f50| 69 61 6c 20 73 65 74 20 | 6f 66 20 63 6f 6d 6d 61 |ial set |of comma|
|00000f60| 6e 64 73 20 28 6d 6f 73 | 74 6c 79 20 6c 65 74 74 |nds (mos|tly lett|
|00000f70| 65 72 73 20 61 6e 64 20 | 70 75 6e 63 74 75 61 74 |ers and |punctuat|
|00000f80| 69 6f 6e 29 0a 61 72 65 | 20 64 65 66 69 6e 65 64 |ion).are| defined|
|00000f90| 20 66 6f 72 20 6d 6f 76 | 69 6e 67 20 61 72 6f 75 | for mov|ing arou|
|00000fa0| 6e 64 20 69 6e 20 74 68 | 65 20 62 75 66 66 65 72 |nd in th|e buffer|
|00000fb0| 2e 0a 53 70 61 63 65 20 | 73 63 72 6f 6c 6c 73 20 |..Space |scrolls |
|00000fc0| 66 6f 72 77 61 72 64 2c | 20 44 65 6c 65 74 65 20 |forward,| Delete |
|00000fd0| 73 63 72 6f 6c 6c 73 20 | 62 61 63 6b 77 61 72 64 |scrolls |backward|
|00000fe0| 2e 0a 46 6f 72 20 6c 69 | 73 74 20 6f 66 20 61 6c |..For li|st of al|
|00000ff0| 6c 20 56 69 65 77 20 63 | 6f 6d 6d 61 6e 64 73 2c |l View c|ommands,|
|00001000| 20 74 79 70 65 20 3f 20 | 6f 72 20 68 20 77 68 69 | type ? |or h whi|
|00001010| 6c 65 20 76 69 65 77 69 | 6e 67 2e 0a 0a 54 68 69 |le viewi|ng...Thi|
|00001020| 73 20 63 6f 6d 6d 61 6e | 64 20 72 75 6e 73 20 74 |s comman|d runs t|
|00001030| 68 65 20 6e 6f 72 6d 61 | 6c 20 68 6f 6f 6b 20 60 |he norma|l hook `|
|00001040| 76 69 65 77 2d 6d 6f 64 | 65 2d 68 6f 6f 6b 27 2e |view-mod|e-hook'.|
|00001050| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 76 69 65 |..(defal|ias 'vie|
|00001060| 77 2d 62 75 66 66 65 72 | 20 23 5b 28 62 75 66 66 |w-buffer| #[(buff|
|00001070| 65 72 2d 6e 61 6d 65 29 | 20 22 70 18 c1 5c 6e c3 |er-name)| "p..\n.|
|00001080| 5c 22 88 c4 08 c5 5c 22 | 29 87 22 20 5b 6f 6c 64 |\"....\"|)." [old|
|00001090| 2d 62 75 66 20 73 77 69 | 74 63 68 2d 74 6f 2d 62 |-buf swi|tch-to-b|
|000010a0| 75 66 66 65 72 20 62 75 | 66 66 65 72 2d 6e 61 6d |uffer bu|ffer-nam|
|000010b0| 65 20 74 20 76 69 65 77 | 2d 6d 6f 64 65 2d 65 6e |e t view|-mode-en|
|000010c0| 74 65 72 20 6e 69 6c 5d | 20 33 20 28 23 24 20 2e |ter nil]| 3 (#$ .|
|000010d0| 20 33 37 39 35 29 20 22 | 62 56 69 65 77 20 62 75 | 3795) "|bView bu|
|000010e0| 66 66 65 72 3a 20 22 5d | 29 0a 23 40 34 34 32 20 |ffer: "]|).#@442 |
|000010f0| 56 69 65 77 20 42 55 46 | 46 45 52 20 69 6e 20 56 |View BUF|FER in V|
|00001100| 69 65 77 20 6d 6f 64 65 | 20 69 6e 20 61 6e 6f 74 |iew mode| in anot|
|00001110| 68 65 72 20 77 69 6e 64 | 6f 77 2e 0a 52 65 74 75 |her wind|ow..Retu|
|00001120| 72 6e 20 74 6f 20 70 72 | 65 76 69 6f 75 73 20 62 |rn to pr|evious b|
|00001130| 75 66 66 65 72 20 77 68 | 65 6e 20 64 6f 6e 65 2c |uffer wh|en done,|
|00001140| 20 75 6e 6c 65 73 73 20 | 4e 4f 54 2d 52 45 54 55 | unless |NOT-RETU|
|00001150| 52 4e 20 69 73 20 6e 6f | 6e 2d 6e 69 6c 2e 0a 0a |RN is no|n-nil...|
|00001160| 54 68 65 20 75 73 75 61 | 6c 20 45 6d 61 63 73 20 |The usua|l Emacs |
|00001170| 63 6f 6d 6d 61 6e 64 73 | 20 61 72 65 20 6e 6f 74 |commands| are not|
|00001180| 20 61 76 61 69 6c 61 62 | 6c 65 20 69 6e 20 56 69 | availab|le in Vi|
|00001190| 65 77 20 6d 6f 64 65 3b | 20 69 6e 73 74 65 61 64 |ew mode;| instead|
|000011a0| 2c 0a 61 20 73 70 65 63 | 69 61 6c 20 73 65 74 20 |,.a spec|ial set |
|000011b0| 6f 66 20 63 6f 6d 6d 61 | 6e 64 73 20 28 6d 6f 73 |of comma|nds (mos|
|000011c0| 74 6c 79 20 6c 65 74 74 | 65 72 73 20 61 6e 64 20 |tly lett|ers and |
|000011d0| 70 75 6e 63 74 75 61 74 | 69 6f 6e 29 0a 61 72 65 |punctuat|ion).are|
|000011e0| 20 64 65 66 69 6e 65 64 | 20 66 6f 72 20 6d 6f 76 | defined| for mov|
|000011f0| 69 6e 67 20 61 72 6f 75 | 6e 64 20 69 6e 20 74 68 |ing arou|nd in th|
|00001200| 65 20 62 75 66 66 65 72 | 2e 0a 53 70 61 63 65 20 |e buffer|..Space |
|00001210| 73 63 72 6f 6c 6c 73 20 | 66 6f 72 77 61 72 64 2c |scrolls |forward,|
|00001220| 20 44 65 6c 65 74 65 20 | 73 63 72 6f 6c 6c 73 20 | Delete |scrolls |
|00001230| 62 61 63 6b 77 61 72 64 | 2e 0a 46 6f 72 20 6c 69 |backward|..For li|
|00001240| 73 74 20 6f 66 20 61 6c | 6c 20 56 69 65 77 20 63 |st of al|l View c|
|00001250| 6f 6d 6d 61 6e 64 73 2c | 20 74 79 70 65 20 3f 20 |ommands,| type ? |
|00001260| 6f 72 20 68 20 77 68 69 | 6c 65 20 76 69 65 77 69 |or h whi|le viewi|
|00001270| 6e 67 2e 0a 0a 54 68 69 | 73 20 63 6f 6d 6d 61 6e |ng...Thi|s comman|
|00001280| 64 20 72 75 6e 73 20 74 | 68 65 20 6e 6f 72 6d 61 |d runs t|he norma|
|00001290| 6c 20 68 6f 6f 6b 20 60 | 76 69 65 77 2d 6d 6f 64 |l hook `|view-mod|
|000012a0| 65 2d 68 6f 6f 6b 27 2e | 1f 0a 28 64 65 66 61 6c |e-hook'.|..(defal|
|000012b0| 69 61 73 20 27 76 69 65 | 77 2d 62 75 66 66 65 72 |ias 'vie|w-buffer|
|000012c0| 2d 6f 74 68 65 72 2d 77 | 69 6e 64 6f 77 20 23 5b |-other-w|indow #[|
|000012d0| 28 62 75 66 66 65 72 2d | 6e 61 6d 65 20 6e 6f 74 |(buffer-|name not|
|000012e0| 2d 72 65 74 75 72 6e 29 | 20 22 08 85 06 00 c1 20 |-return)| "..... |
|000012f0| 1a c3 5c 66 21 88 c5 5c | 6e 21 29 87 22 20 5b 6e |..\f!..\|n!)." [n|
|00001300| 6f 74 2d 72 65 74 75 72 | 6e 20 63 75 72 72 65 6e |ot-retur|n curren|
|00001310| 74 2d 77 69 6e 64 6f 77 | 2d 63 6f 6e 66 69 67 75 |t-window|-configu|
|00001320| 72 61 74 69 6f 6e 20 72 | 65 74 75 72 6e 2d 74 6f |ration r|eturn-to|
|00001330| 20 73 77 69 74 63 68 2d | 74 6f 2d 62 75 66 66 65 | switch-|to-buffe|
|00001340| 72 2d 6f 74 68 65 72 2d | 77 69 6e 64 6f 77 20 62 |r-other-|window b|
|00001350| 75 66 66 65 72 2d 6e 61 | 6d 65 20 76 69 65 77 2d |uffer-na|me view-|
|00001360| 6d 6f 64 65 2d 65 6e 74 | 65 72 5d 20 32 20 28 23 |mode-ent|er] 2 (#|
|00001370| 24 20 2e 20 34 33 33 36 | 29 20 22 62 56 69 65 77 |$ . 4336|) "bView|
|00001380| 20 62 75 66 66 65 72 3a | 5c 6e 50 22 5d 29 0a 23 | buffer:|\nP"]).#|
|00001390| 40 31 38 34 31 20 54 6f | 67 67 6c 65 20 56 69 65 |@1841 To|ggle Vie|
|000013a0| 77 20 6d 6f 64 65 2e 0a | 57 69 74 68 20 61 20 70 |w mode..|With a p|
|000013b0| 72 65 66 69 78 20 61 72 | 67 75 6d 65 6e 74 2c 20 |refix ar|gument, |
|000013c0| 74 75 72 6e 20 56 69 65 | 77 20 6d 6f 64 65 20 6f |turn Vie|w mode o|
|000013d0| 6e 20 69 66 20 74 68 65 | 20 61 72 67 75 6d 65 6e |n if the| argumen|
|000013e0| 74 20 69 73 20 3e 3d 20 | 7a 65 72 6f 0a 61 6e 64 |t is >= |zero.and|
|000013f0| 20 6f 66 66 20 69 66 20 | 69 74 20 69 73 20 6e 6f | off if |it is no|
|00001400| 74 2e 0a 0a 49 66 20 79 | 6f 75 20 75 73 65 20 74 |t...If y|ou use t|
|00001410| 68 69 73 20 66 75 6e 63 | 74 69 6f 6e 20 74 6f 20 |his func|tion to |
|00001420| 74 75 72 6e 20 6f 6e 20 | 56 69 65 77 20 6d 6f 64 |turn on |View mod|
|00001430| 65 2c 20 74 68 65 6e 20 | 73 75 62 73 65 71 75 65 |e, then |subseque|
|00001440| 6e 74 6c 79 0a 22 65 78 | 69 74 69 6e 67 22 20 56 |ntly."ex|iting" V|
|00001450| 69 65 77 20 6d 6f 64 65 | 20 64 6f 65 73 20 6e 6f |iew mode| does no|
|00001460| 74 68 69 6e 67 20 65 78 | 63 65 70 74 20 74 75 72 |thing ex|cept tur|
|00001470| 6e 20 56 69 65 77 20 6d | 6f 64 65 20 6f 66 66 2e |n View m|ode off.|
|00001480| 20 20 54 68 65 0a 6f 74 | 68 65 72 20 77 61 79 20 | The.ot|her way |
|00001490| 74 6f 20 74 75 72 6e 20 | 56 69 65 77 20 6d 6f 64 |to turn |View mod|
|000014a0| 65 20 6f 6e 20 69 73 20 | 62 79 20 63 61 6c 6c 69 |e on is |by calli|
|000014b0| 6e 67 20 60 76 69 65 77 | 2d 6d 6f 64 65 2d 65 6e |ng `view|-mode-en|
|000014c0| 74 65 72 27 3b 0a 74 68 | 61 74 20 69 73 20 77 68 |ter';.th|at is wh|
|000014d0| 61 74 20 4c 69 73 70 20 | 70 72 6f 67 72 61 6d 73 |at Lisp |programs|
|000014e0| 20 75 73 75 61 6c 6c 79 | 20 75 73 65 2e 0a 0a 4c | usually| use...L|
|000014f0| 65 74 74 65 72 73 20 64 | 6f 20 6e 6f 74 20 69 6e |etters d|o not in|
|00001500| 73 65 72 74 20 74 68 65 | 6d 73 65 6c 76 65 73 2e |sert the|mselves.|
|00001510| 20 20 49 6e 73 74 65 61 | 64 20 74 68 65 73 65 20 | Instea|d these |
|00001520| 63 6f 6d 6d 61 6e 64 73 | 20 61 72 65 20 70 72 6f |commands| are pro|
|00001530| 76 69 64 65 64 2e 0a 4d | 6f 73 74 20 63 6f 6d 6d |vided..M|ost comm|
|00001540| 61 6e 64 73 20 74 61 6b | 65 20 70 72 65 66 69 78 |ands tak|e prefix|
|00001550| 20 61 72 67 75 6d 65 6e | 74 73 2e 20 20 43 6f 6d | argumen|ts. Com|
|00001560| 6d 61 6e 64 73 20 64 65 | 61 6c 69 6e 67 20 77 69 |mands de|aling wi|
|00001570| 74 68 20 6c 69 6e 65 73 | 0a 64 65 66 61 75 6c 74 |th lines|.default|
|00001580| 20 74 6f 20 22 73 63 72 | 6f 6c 6c 20 73 69 7a 65 | to "scr|oll size|
|00001590| 22 20 6c 69 6e 65 73 20 | 28 69 6e 69 74 69 61 6c |" lines |(initial|
|000015a0| 6c 79 20 73 69 7a 65 20 | 6f 66 20 77 69 6e 64 6f |ly size |of windo|
|000015b0| 77 29 2e 0a 53 65 61 72 | 63 68 20 63 6f 6d 6d 61 |w)..Sear|ch comma|
|000015c0| 6e 64 73 20 64 65 66 61 | 75 6c 74 20 74 6f 20 61 |nds defa|ult to a|
|000015d0| 20 72 65 70 65 61 74 20 | 63 6f 75 6e 74 20 6f 66 | repeat |count of|
|000015e0| 20 6f 6e 65 2e 0a 0a 4d | 2d 3c 20 6f 72 20 3c 09 | one...M|-< or <.|
|000015f0| 6d 6f 76 65 20 74 6f 20 | 62 65 67 69 6e 6e 69 6e |move to |beginnin|
|00001600| 67 20 6f 66 20 62 75 66 | 66 65 72 2e 0a 4d 2d 3e |g of buf|fer..M->|
|00001610| 20 6f 72 20 3e 09 6d 6f | 76 65 20 74 6f 20 65 6e | or >.mo|ve to en|
|00001620| 64 20 6f 66 20 62 75 66 | 66 65 72 2e 0a 43 2d 76 |d of buf|fer..C-v|
|00001630| 20 6f 72 20 53 70 61 63 | 65 09 73 63 72 6f 6c 6c | or Spac|e.scroll|
|00001640| 20 66 6f 72 77 61 72 64 | 20 6c 69 6e 65 73 2e 0a | forward| lines..|
|00001650| 4d 2d 76 20 6f 72 20 44 | 45 4c 09 73 63 72 6f 6c |M-v or D|EL.scrol|
|00001660| 6c 20 62 61 63 6b 77 61 | 72 64 20 6c 69 6e 65 73 |l backwa|rd lines|
|00001670| 2e 0a 43 52 20 6f 72 20 | 4c 46 09 73 63 72 6f 6c |..CR or |LF.scrol|
|00001680| 6c 20 66 6f 72 77 61 72 | 64 20 6f 6e 65 20 6c 69 |l forwar|d one li|
|00001690| 6e 65 20 28 62 61 63 6b | 77 61 72 64 20 77 69 74 |ne (back|ward wit|
|000016a0| 68 20 70 72 65 66 69 78 | 20 61 72 67 75 6d 65 6e |h prefix| argumen|
|000016b0| 74 29 2e 0a 7a 09 09 6c | 69 6b 65 20 53 70 61 63 |t)..z..l|ike Spac|
|000016c0| 65 20 65 78 63 65 70 74 | 20 73 65 74 20 6e 75 6d |e except| set num|
|000016d0| 62 65 72 20 6f 66 20 6c | 69 6e 65 73 20 66 6f 72 |ber of l|ines for|
|000016e0| 20 66 75 72 74 68 65 72 | 0a 09 09 20 20 20 73 63 | further|... sc|
|000016f0| 72 6f 6c 6c 69 6e 67 20 | 63 6f 6d 6d 61 6e 64 73 |rolling |commands|
|00001700| 20 74 6f 20 73 63 72 6f | 6c 6c 20 62 79 2e 0a 43 | to scro|ll by..C|
|00001710| 2d 75 20 61 6e 64 20 44 | 69 67 69 74 73 09 70 72 |-u and D|igits.pr|
|00001720| 6f 76 69 64 65 20 70 72 | 65 66 69 78 20 61 72 67 |ovide pr|efix arg|
|00001730| 75 6d 65 6e 74 73 2e 20 | 20 60 2d 27 20 64 65 6e |uments. | `-' den|
|00001740| 6f 74 65 73 20 6e 65 67 | 61 74 69 76 65 20 61 72 |otes neg|ative ar|
|00001750| 67 75 6d 65 6e 74 2e 0a | 3d 09 09 70 72 69 6e 74 |gument..|=..print|
|00001760| 73 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 6c 69 |s the cu|rrent li|
|00001770| 6e 65 20 6e 75 6d 62 65 | 72 2e 0a 67 09 09 67 6f |ne numbe|r..g..go|
|00001780| 65 73 20 74 6f 20 6c 69 | 6e 65 20 67 69 76 65 6e |es to li|ne given|
|00001790| 20 62 79 20 70 72 65 66 | 69 78 20 61 72 67 75 6d | by pref|ix argum|
|000017a0| 65 6e 74 2e 0a 2f 20 6f | 72 20 4d 2d 43 2d 73 09 |ent../ o|r M-C-s.|
|000017b0| 73 65 61 72 63 68 65 73 | 20 66 6f 72 77 61 72 64 |searches| forward|
|000017c0| 20 66 6f 72 20 72 65 67 | 75 6c 61 72 20 65 78 70 | for reg|ular exp|
|000017d0| 72 65 73 73 69 6f 6e 0a | 5c 20 6f 72 20 4d 2d 43 |ression.|\ or M-C|
|000017e0| 2d 72 09 73 65 61 72 63 | 68 65 73 20 62 61 63 6b |-r.searc|hes back|
|000017f0| 77 61 72 64 20 66 6f 72 | 20 72 65 67 75 6c 61 72 |ward for| regular|
|00001800| 20 65 78 70 72 65 73 73 | 69 6f 6e 2e 0a 6e 09 09 | express|ion..n..|
|00001810| 73 65 61 72 63 68 65 73 | 20 66 6f 72 77 61 72 64 |searches| forward|
|00001820| 20 66 6f 72 20 6c 61 73 | 74 20 72 65 67 75 6c 61 | for las|t regula|
|00001830| 72 20 65 78 70 72 65 73 | 73 69 6f 6e 2e 0a 70 09 |r expres|sion..p.|
|00001840| 09 73 65 61 72 63 68 65 | 73 20 62 61 63 6b 77 61 |.searche|s backwa|
|00001850| 72 64 20 66 6f 72 20 6c | 61 73 74 20 72 65 67 75 |rd for l|ast regu|
|00001860| 6c 61 72 20 65 78 70 72 | 65 73 73 69 6f 6e 2e 0a |lar expr|ession..|
|00001870| 43 2d 40 20 6f 72 20 2e | 09 73 65 74 20 74 68 65 |C-@ or .|.set the|
|00001880| 20 6d 61 72 6b 2e 0a 78 | 09 09 65 78 63 68 61 6e | mark..x|..exchan|
|00001890| 67 65 73 20 70 6f 69 6e | 74 20 61 6e 64 20 6d 61 |ges poin|t and ma|
|000018a0| 72 6b 2e 0a 43 2d 73 20 | 6f 72 20 73 09 64 6f 20 |rk..C-s |or s.do |
|000018b0| 66 6f 72 77 61 72 64 20 | 69 6e 63 72 65 6d 65 6e |forward |incremen|
|000018c0| 74 61 6c 20 73 65 61 72 | 63 68 2e 0a 43 2d 72 20 |tal sear|ch..C-r |
|000018d0| 6f 72 20 72 09 64 6f 20 | 72 65 76 65 72 73 65 20 |or r.do |reverse |
|000018e0| 69 6e 63 72 65 6d 65 6e | 74 61 6c 20 73 65 61 72 |incremen|tal sear|
|000018f0| 63 68 2e 0a 40 20 6f 72 | 20 27 09 09 72 65 74 75 |ch..@ or| '..retu|
|00001900| 72 6e 20 74 6f 20 6d 61 | 72 6b 20 61 6e 64 20 70 |rn to ma|rk and p|
|00001910| 6f 70 73 20 6d 61 72 6b | 20 72 69 6e 67 2e 0a 09 |ops mark| ring...|
|00001920| 09 20 20 4d 61 72 6b 20 | 72 69 6e 67 20 69 73 20 |. Mark |ring is |
|00001930| 70 75 73 68 65 64 20 61 | 74 20 73 74 61 72 74 20 |pushed a|t start |
|00001940| 6f 66 20 65 76 65 72 79 | 0a 09 09 20 20 73 75 63 |of every|... suc|
|00001950| 63 65 73 73 66 75 6c 20 | 73 65 61 72 63 68 20 61 |cessful |search a|
|00001960| 6e 64 20 77 68 65 6e 20 | 6a 75 6d 70 20 74 6f 20 |nd when |jump to |
|00001970| 6c 69 6e 65 20 74 6f 20 | 6f 63 63 75 72 73 2e 0a |line to |occurs..|
|00001980| 09 09 20 20 54 68 65 20 | 6d 61 72 6b 20 69 73 20 |.. The |mark is |
|00001990| 73 65 74 20 6f 6e 20 6a | 75 6d 70 20 74 6f 20 62 |set on j|ump to b|
|000019a0| 75 66 66 65 72 20 73 74 | 61 72 74 20 6f 72 20 65 |uffer st|art or e|
|000019b0| 6e 64 2e 0a 3f 20 6f 72 | 20 68 09 09 70 72 6f 76 |nd..? or| h..prov|
|000019c0| 69 64 65 20 68 65 6c 70 | 20 6d 65 73 73 61 67 65 |ide help| message|
|000019d0| 20 28 6c 69 73 74 20 6f | 66 20 63 6f 6d 6d 61 6e | (list o|f comman|
|000019e0| 64 73 29 2e 0a 5c 5b 68 | 65 6c 70 2d 63 6f 6d 6d |ds)..\[h|elp-comm|
|000019f0| 61 6e 64 5d 09 09 70 72 | 6f 76 69 64 65 73 20 68 |and]..pr|ovides h|
|00001a00| 65 6c 70 20 28 6c 69 73 | 74 20 6f 66 20 63 6f 6d |elp (lis|t of com|
|00001a10| 6d 61 6e 64 73 20 6f 72 | 20 64 65 73 63 72 69 70 |mands or| descrip|
|00001a20| 74 69 6f 6e 20 6f 66 20 | 61 20 63 6f 6d 6d 61 6e |tion of |a comman|
|00001a30| 64 29 2e 0a 43 2d 6e 09 | 09 6d 6f 76 65 73 20 64 |d)..C-n.|.moves d|
|00001a40| 6f 77 6e 20 6c 69 6e 65 | 73 20 76 65 72 74 69 63 |own line|s vertic|
|00001a50| 61 6c 6c 79 2e 0a 43 2d | 70 09 09 6d 6f 76 65 73 |ally..C-|p..moves|
|00001a60| 20 75 70 77 61 72 64 20 | 6c 69 6e 65 73 20 76 65 | upward |lines ve|
|00001a70| 72 74 69 63 61 6c 6c 79 | 2e 0a 43 2d 6c 09 09 72 |rtically|..C-l..r|
|00001a80| 65 63 65 6e 74 65 72 73 | 20 74 68 65 20 73 63 72 |ecenters| the scr|
|00001a90| 65 65 6e 2e 0a 71 09 09 | 65 78 69 74 20 76 69 65 |een..q..|exit vie|
|00001aa0| 77 2d 6d 6f 64 65 20 61 | 6e 64 20 72 65 74 75 72 |w-mode a|nd retur|
|00001ab0| 6e 20 74 6f 20 70 72 65 | 76 69 6f 75 73 20 62 75 |n to pre|vious bu|
|00001ac0| 66 66 65 72 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |ffer...(|defalias|
|00001ad0| 20 27 76 69 65 77 2d 6d | 6f 64 65 20 23 5b 28 26 | 'view-m|ode #[(&|
|00001ae0| 6f 70 74 69 6f 6e 61 6c | 20 61 72 67 29 20 22 08 |optional| arg) ".|
|00001af0| 84 09 00 09 3f 82 0e 00 | c2 08 21 c3 56 11 c4 20 |....?...|..!.V.. |
|00001b00| 87 22 20 5b 61 72 67 20 | 76 69 65 77 2d 6d 6f 64 |." [arg |view-mod|
|00001b10| 65 20 70 72 65 66 69 78 | 2d 6e 75 6d 65 72 69 63 |e prefix|-numeric|
|00001b20| 2d 76 61 6c 75 65 20 30 | 20 66 6f 72 63 65 2d 6d |-value 0| force-m|
|00001b30| 6f 64 65 2d 6c 69 6e 65 | 2d 75 70 64 61 74 65 5d |ode-line|-update]|
|00001b40| 20 32 20 28 23 24 20 2e | 20 35 30 31 34 29 20 22 | 2 (#$ .| 5014) "|
|00001b50| 50 22 5d 29 0a 23 40 31 | 38 37 20 45 6e 74 65 72 |P"]).#@1|87 Enter|
|00001b60| 20 56 69 65 77 20 6d 6f | 64 65 2c 20 61 20 4d 69 | View mo|de, a Mi|
|00001b70| 6e 6f 72 20 6d 6f 64 65 | 20 66 6f 72 20 76 69 65 |nor mode| for vie|
|00001b80| 77 69 6e 67 20 74 65 78 | 74 20 62 75 74 20 6e 6f |wing tex|t but no|
|00001b90| 74 20 65 64 69 74 69 6e | 67 20 69 74 2e 0a 53 65 |t editin|g it..Se|
|00001ba0| 65 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 20 60 |e the fu|nction `|
|00001bb0| 76 69 65 77 2d 6d 6f 64 | 65 27 20 66 6f 72 20 6d |view-mod|e' for m|
|00001bc0| 6f 72 65 20 64 65 74 61 | 69 6c 73 2e 0a 0a 54 68 |ore deta|ils...Th|
|00001bd0| 69 73 20 66 75 6e 63 74 | 69 6f 6e 20 72 75 6e 73 |is funct|ion runs|
|00001be0| 20 74 68 65 20 6e 6f 72 | 6d 61 6c 20 68 6f 6f 6b | the nor|mal hook|
|00001bf0| 20 60 76 69 65 77 2d 6d | 6f 64 65 2d 68 6f 6f 6b | `view-m|ode-hook|
|00001c00| 27 2e 0a 0a 5c 7b 76 69 | 65 77 2d 6d 6f 64 65 2d |'...\{vi|ew-mode-|
|00001c10| 6d 61 70 7d 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |map}..(d|efalias |
|00001c20| 27 76 69 65 77 2d 6d 6f | 64 65 2d 65 6e 74 65 72 |'view-mo|de-enter|
|00001c30| 20 23 5b 28 26 6f 70 74 | 69 6f 6e 61 6c 20 70 72 | #[(&opt|ional pr|
|00001c40| 65 76 2d 62 75 66 66 65 | 72 20 61 63 74 69 6f 6e |ev-buffe|r action|
|00001c50| 29 20 22 08 11 c2 c3 21 | 85 09 00 0b 14 c5 16 06 |) "....!|........|
|00001c60| c5 10 c5 16 07 c8 c9 ca | 20 83 20 00 cb ca 20 21 |........| . ... !|
|00001c70| 82 5c 22 00 cc 20 5c 22 | 13 0e 0d 16 0e 0e 0f 16 |.\".. \"|........|
|00001c80| 10 d1 20 16 12 d3 79 88 | d4 16 15 d6 d7 21 88 d8 |.. ...y.|.....!..|
|00001c90| d9 da db 21 5c 22 87 22 | 20 5b 62 75 66 66 65 72 |...!\"."| [buffer|
|00001ca0| 2d 72 65 61 64 2d 6f 6e | 6c 79 20 76 69 65 77 2d |-read-on|ly view-|
|00001cb0| 6f 6c 64 2d 62 75 66 66 | 65 72 2d 72 65 61 64 2d |old-buff|er-read-|
|00001cc0| 6f 6e 6c 79 20 62 6f 75 | 6e 64 70 20 48 65 6c 70 |only bou|ndp Help|
|00001cd0| 65 72 2d 72 65 74 75 72 | 6e 2d 62 6c 75 72 62 20 |er-retur|n-blurb |
|00001ce0| 76 69 65 77 2d 6f 6c 64 | 2d 48 65 6c 70 65 72 2d |view-old|-Helper-|
|00001cf0| 72 65 74 75 72 6e 2d 62 | 6c 75 72 62 20 74 20 76 |return-b|lurb t v|
|00001d00| 69 65 77 2d 6d 6f 64 65 | 2d 61 75 74 6f 2d 65 78 |iew-mode|-auto-ex|
|00001d10| 69 74 20 76 69 65 77 2d | 6d 6f 64 65 20 66 6f 72 |it view-|mode for|
|00001d20| 6d 61 74 20 22 63 6f 6e | 74 69 6e 75 65 20 76 69 |mat "con|tinue vi|
|00001d30| 65 77 69 6e 67 20 25 73 | 22 20 62 75 66 66 65 72 |ewing %s|" buffer|
|00001d40| 2d 66 69 6c 65 2d 6e 61 | 6d 65 20 66 69 6c 65 2d |-file-na|me file-|
|00001d50| 6e 61 6d 65 2d 6e 6f 6e | 64 69 72 65 63 74 6f 72 |name-non|director|
|00001d60| 79 20 62 75 66 66 65 72 | 2d 6e 61 6d 65 20 61 63 |y buffer|-name ac|
|00001d70| 74 69 6f 6e 20 76 69 65 | 77 2d 65 78 69 74 2d 61 |tion vie|w-exit-a|
|00001d80| 63 74 69 6f 6e 20 70 72 | 65 76 2d 62 75 66 66 65 |ction pr|ev-buffe|
|00001d90| 72 20 76 69 65 77 2d 72 | 65 74 75 72 6e 2d 68 65 |r view-r|eturn-he|
|00001da0| 72 65 20 70 6f 69 6e 74 | 2d 6d 61 72 6b 65 72 20 |re point|-marker |
|00001db0| 76 69 65 77 2d 65 78 69 | 74 2d 70 6f 73 69 74 69 |view-exi|t-positi|
|00001dc0| 6f 6e 20 30 20 6e 69 6c | 20 67 6f 61 6c 2d 63 6f |on 0 nil| goal-co|
|00001dd0| 6c 75 6d 6e 20 72 75 6e | 2d 68 6f 6f 6b 73 20 76 |lumn run|-hooks v|
|00001de0| 69 65 77 2d 6d 6f 64 65 | 2d 68 6f 6f 6b 20 6d 65 |iew-mode|-hook me|
|00001df0| 73 73 61 67 65 20 22 25 | 73 22 20 73 75 62 73 74 |ssage "%|s" subst|
|00001e00| 69 74 75 74 65 2d 63 6f | 6d 6d 61 6e 64 2d 6b 65 |itute-co|mmand-ke|
|00001e10| 79 73 20 22 54 79 70 65 | 20 5c 5c 5b 68 65 6c 70 |ys "Type| \\[help|
|00001e20| 2d 63 6f 6d 6d 61 6e 64 | 5d 20 66 6f 72 20 68 65 |-command|] for he|
|00001e30| 6c 70 2c 20 5c 5c 5b 64 | 65 73 63 72 69 62 65 2d |lp, \\[d|escribe-|
|00001e40| 6d 6f 64 65 5d 20 66 6f | 72 20 63 6f 6d 6d 61 6e |mode] fo|r comman|
|00001e50| 64 73 2c 20 5c 5c 5b 76 | 69 65 77 2d 65 78 69 74 |ds, \\[v|iew-exit|
|00001e60| 5d 20 74 6f 20 71 75 69 | 74 2e 22 5d 20 34 20 28 |] to qui|t."] 4 (|
|00001e70| 23 24 20 2e 20 37 30 30 | 33 29 5d 29 0a 23 40 31 |#$ . 700|3)]).#@1|
|00001e80| 37 32 20 45 78 69 74 20 | 66 72 6f 6d 20 76 69 65 |72 Exit |from vie|
|00001e90| 77 2d 6d 6f 64 65 2e 0a | 49 66 20 79 6f 75 20 76 |w-mode..|If you v|
|00001ea0| 69 65 77 65 64 20 61 6e | 20 65 78 69 73 74 69 6e |iewed an| existin|
|00001eb0| 67 20 62 75 66 66 65 72 | 2c 20 74 68 61 74 20 62 |g buffer|, that b|
|00001ec0| 75 66 66 65 72 20 72 65 | 74 75 72 6e 73 20 74 6f |uffer re|turns to|
|00001ed0| 20 69 74 73 20 70 72 65 | 76 69 6f 75 73 20 6d 6f | its pre|vious mo|
|00001ee0| 64 65 2e 0a 49 66 20 79 | 6f 75 20 76 69 65 77 65 |de..If y|ou viewe|
|00001ef0| 64 20 61 20 66 69 6c 65 | 20 74 68 61 74 20 77 61 |d a file| that wa|
|00001f00| 73 20 6e 6f 74 20 70 72 | 65 73 65 6e 74 20 69 6e |s not pr|esent in|
|00001f10| 20 45 6d 61 63 73 2c 20 | 69 74 73 20 62 75 66 66 | Emacs, |its buff|
|00001f20| 65 72 20 69 73 20 6b 69 | 6c 6c 65 64 2e 1f 0a 28 |er is ki|lled...(|
|00001f30| 64 65 66 61 6c 69 61 73 | 20 27 76 69 65 77 2d 65 |defalias| 'view-e|
|00001f40| 78 69 74 20 23 5b 6e 69 | 6c 20 22 c0 11 5c 6e 83 |xit #[ni|l "..\n.|
|00001f50| 5c 6e 00 c3 5c 6e 21 88 | c4 20 88 0d 85 4e 00 0e |\n..\n!.|. ...N..|
|00001f60| 06 16 07 c0 15 0e 08 62 | 88 0e 08 c0 89 93 88 70 |.......b|.......p|
|00001f70| 0e 09 1e 5c 6e 1e 0b cc | 0e 0d 21 83 37 00 ce 0e |...\n...|..!.7...|
|00001f80| 0d 21 88 82 43 00 cf 0e | 0d 21 83 43 00 d0 0e 0d |.!..C...|.!.C....|
|00001f90| 21 88 0e 5c 6e 85 4d 00 | 0e 5c 6e 0e 0b 21 2a 87 |!..\n.M.|.\n..!*.|
|00001fa0| 22 20 5b 6e 69 6c 20 76 | 69 65 77 2d 6d 6f 64 65 |" [nil v|iew-mode|
|00001fb0| 20 76 69 65 77 2d 6f 76 | 65 72 6c 61 79 20 64 65 | view-ov|erlay de|
|00001fc0| 6c 65 74 65 2d 6f 76 65 | 72 6c 61 79 20 66 6f 72 |lete-ove|rlay for|
|00001fd0| 63 65 2d 6d 6f 64 65 2d | 6c 69 6e 65 2d 75 70 64 |ce-mode-|line-upd|
|00001fe0| 61 74 65 20 76 69 65 77 | 2d 6d 6f 64 65 2d 61 75 |ate view|-mode-au|
|00001ff0| 74 6f 2d 65 78 69 74 20 | 76 69 65 77 2d 6f 6c 64 |to-exit |view-old|
|00002000| 2d 62 75 66 66 65 72 2d | 72 65 61 64 2d 6f 6e 6c |-buffer-|read-onl|
|00002010| 79 20 62 75 66 66 65 72 | 2d 72 65 61 64 2d 6f 6e |y buffer|-read-on|
|00002020| 6c 79 20 76 69 65 77 2d | 65 78 69 74 2d 70 6f 73 |ly view-|exit-pos|
|00002030| 69 74 69 6f 6e 20 76 69 | 65 77 2d 65 78 69 74 2d |ition vi|ew-exit-|
|00002040| 61 63 74 69 6f 6e 20 61 | 63 74 69 6f 6e 20 76 69 |action a|ction vi|
|00002050| 65 77 65 64 2d 62 75 66 | 66 65 72 20 62 75 66 66 |ewed-buf|fer buff|
|00002060| 65 72 70 20 76 69 65 77 | 2d 72 65 74 75 72 6e 2d |erp view|-return-|
|00002070| 68 65 72 65 20 73 77 69 | 74 63 68 2d 74 6f 2d 62 |here swi|tch-to-b|
|00002080| 75 66 66 65 72 20 77 69 | 6e 64 6f 77 2d 63 6f 6e |uffer wi|ndow-con|
|00002090| 66 69 67 75 72 61 74 69 | 6f 6e 2d 70 20 73 65 74 |figurati|on-p set|
|000020a0| 2d 77 69 6e 64 6f 77 2d | 63 6f 6e 66 69 67 75 72 |-window-|configur|
|000020b0| 61 74 69 6f 6e 5d 20 33 | 20 28 23 24 20 2e 20 37 |ation] 3| (#$ . 7|
|000020c0| 38 31 31 29 20 6e 69 6c | 5d 29 0a 28 64 65 66 61 |811) nil|]).(defa|
|000020d0| 6c 69 61 73 20 27 76 69 | 65 77 2d 77 69 6e 64 6f |lias 'vi|ew-windo|
|000020e0| 77 2d 73 69 7a 65 20 23 | 5b 6e 69 6c 20 22 c0 20 |w-size #|[nil ". |
|000020f0| 53 87 22 20 5b 77 69 6e | 64 6f 77 2d 68 65 69 67 |S." [win|dow-heig|
|00002100| 68 74 5d 20 31 5d 29 0a | 28 64 65 66 61 6c 69 61 |ht] 1]).|(defalia|
|00002110| 73 20 27 76 69 65 77 2d | 73 63 72 6f 6c 6c 2d 73 |s 'view-|scroll-s|
|00002120| 69 7a 65 20 23 5b 6e 69 | 6c 20 22 c0 20 09 86 08 |ize #[ni|l ". ...|
|00002130| 00 c0 20 5e 87 22 20 5b | 76 69 65 77 2d 77 69 6e |.. ^." [|view-win|
|00002140| 64 6f 77 2d 73 69 7a 65 | 20 76 69 65 77 2d 73 63 |dow-size| view-sc|
|00002150| 72 6f 6c 6c 2d 73 69 7a | 65 5d 20 32 5d 29 0a 23 |roll-siz|e] 2]).#|
|00002160| 40 35 37 20 4e 6f 72 6d | 61 6c 20 68 6f 6f 6b 20 |@57 Norm|al hook |
|00002170| 72 75 6e 20 77 68 65 6e | 20 73 74 61 72 74 69 6e |run when| startin|
|00002180| 67 20 74 6f 20 76 69 65 | 77 20 61 20 62 75 66 66 |g to vie|w a buff|
|00002190| 65 72 20 6f 72 20 66 69 | 6c 65 2e 1f 0a 28 64 65 |er or fi|le...(de|
|000021a0| 66 76 61 72 20 76 69 65 | 77 2d 6d 6f 64 65 2d 68 |fvar vie|w-mode-h|
|000021b0| 6f 6f 6b 20 6e 69 6c 20 | 28 23 24 20 2e 20 38 35 |ook nil |(#$ . 85|
|000021c0| 34 38 29 29 0a 23 40 31 | 31 36 20 4d 6f 76 65 20 |48)).#@1|16 Move |
|000021d0| 74 6f 20 6c 69 6e 65 20 | 4c 49 4e 45 20 69 6e 20 |to line |LINE in |
|000021e0| 56 69 65 77 20 6d 6f 64 | 65 2e 0a 44 69 73 70 6c |View mod|e..Displ|
|000021f0| 61 79 20 69 73 20 63 65 | 6e 74 65 72 65 64 20 61 |ay is ce|ntered a|
|00002200| 74 20 4c 49 4e 45 2e 20 | 20 53 65 74 73 20 6d 61 |t LINE. | Sets ma|
|00002210| 72 6b 20 61 74 20 73 74 | 61 72 74 69 6e 67 20 70 |rk at st|arting p|
|00002220| 6f 73 69 74 69 6f 6e 20 | 61 6e 64 20 70 75 73 68 |osition |and push|
|00002230| 65 73 0a 6d 61 72 6b 20 | 72 69 6e 67 2e 1f 0a 28 |es.mark |ring...(|
|00002240| 64 65 66 61 6c 69 61 73 | 20 27 56 69 65 77 2d 67 |defalias| 'View-g|
|00002250| 6f 74 6f 2d 6c 69 6e 65 | 20 23 5b 28 6c 69 6e 65 |oto-line| #[(line|
|00002260| 29 20 22 c0 20 88 c1 5c | 6e 21 88 c3 c4 20 c5 a5 |) ". ..\|n!... ..|
|00002270| 21 87 22 20 5b 70 75 73 | 68 2d 6d 61 72 6b 20 67 |!." [pus|h-mark g|
|00002280| 6f 74 6f 2d 6c 69 6e 65 | 20 6c 69 6e 65 20 72 65 |oto-line| line re|
|00002290| 63 65 6e 74 65 72 20 76 | 69 65 77 2d 77 69 6e 64 |center v|iew-wind|
|000022a0| 6f 77 2d 73 69 7a 65 20 | 32 5d 20 33 20 28 23 24 |ow-size |2] 3 (#$|
|000022b0| 20 2e 20 38 36 35 31 29 | 20 22 70 22 5d 29 0a 23 | . 8651)| "p"]).#|
|000022c0| 40 32 30 33 20 53 63 72 | 6f 6c 6c 20 66 6f 72 77 |@203 Scr|oll forw|
|000022d0| 61 72 64 20 69 6e 20 56 | 69 65 77 20 6d 6f 64 65 |ard in V|iew mode|
|000022e0| 2c 20 6f 72 20 65 78 69 | 74 20 69 66 20 65 6e 64 |, or exi|t if end|
|000022f0| 20 6f 66 20 74 65 78 74 | 20 69 73 20 76 69 73 69 | of text| is visi|
|00002300| 62 6c 65 2e 0a 4e 6f 20 | 61 72 67 20 6d 65 61 6e |ble..No |arg mean|
|00002310| 73 20 77 68 6f 6c 65 20 | 77 69 6e 64 6f 77 20 66 |s whole |window f|
|00002320| 75 6c 6c 2c 20 6f 72 20 | 6e 75 6d 62 65 72 20 6f |ull, or |number o|
|00002330| 66 20 6c 69 6e 65 73 20 | 73 65 74 20 62 79 20 5c |f lines |set by \|
|00002340| 5b 56 69 65 77 2d 73 63 | 72 6f 6c 6c 2d 6c 69 6e |[View-sc|roll-lin|
|00002350| 65 73 2d 66 6f 72 77 61 | 72 64 2d 73 65 74 2d 73 |es-forwa|rd-set-s|
|00002360| 63 72 6f 6c 6c 2d 73 69 | 7a 65 5d 2e 0a 41 72 67 |croll-si|ze]..Arg|
|00002370| 20 69 73 20 6e 75 6d 62 | 65 72 20 6f 66 20 6c 69 | is numb|er of li|
|00002380| 6e 65 73 20 74 6f 20 73 | 63 72 6f 6c 6c 2e 1f 0a |nes to s|croll...|
|00002390| 28 64 65 66 61 6c 69 61 | 73 20 27 56 69 65 77 2d |(defalia|s 'View-|
|000023a0| 73 63 72 6f 6c 6c 2d 6c | 69 6e 65 73 2d 66 6f 72 |scroll-l|ines-for|
|000023b0| 77 61 72 64 20 23 5b 28 | 26 6f 70 74 69 6f 6e 61 |ward #[(|&optiona|
|000023c0| 6c 20 6c 69 6e 65 73 29 | 20 22 08 83 5c 6e 00 c1 |l lines)| "..\n..|
|000023d0| 08 21 82 5c 66 00 c2 20 | 10 c3 64 21 83 20 00 08 |.!.\f.. |..d!. ..|
|000023e0| c4 56 83 20 00 0d 83 20 | 00 c6 20 87 08 c7 20 59 |.V. ... |.. ... Y|
|000023f0| 83 2e 00 c8 c9 21 88 82 | 41 00 08 5b c7 20 59 83 |.....!..|A..[. Y.|
|00002400| 3d 00 ca c9 21 88 82 41 | 00 c8 08 21 88 c3 64 21 |=...!..A|...!..d!|
|00002410| 83 51 00 64 62 88 cb cc | cd ce 21 5c 22 88 cf d0 |.Q.db...|..!\"...|
|00002420| 21 88 c4 79 88 c9 87 22 | 20 5b 6c 69 6e 65 73 20 |!..y..."| [lines |
|00002430| 70 72 65 66 69 78 2d 6e | 75 6d 65 72 69 63 2d 76 |prefix-n|umeric-v|
|00002440| 61 6c 75 65 20 76 69 65 | 77 2d 73 63 72 6f 6c 6c |alue vie|w-scroll|
|00002450| 2d 73 69 7a 65 20 70 6f | 73 2d 76 69 73 69 62 6c |-size po|s-visibl|
|00002460| 65 2d 69 6e 2d 77 69 6e | 64 6f 77 2d 70 20 30 20 |e-in-win|dow-p 0 |
|00002470| 76 69 65 77 2d 6d 6f 64 | 65 2d 61 75 74 6f 2d 65 |view-mod|e-auto-e|
|00002480| 78 69 74 20 76 69 65 77 | 2d 65 78 69 74 20 76 69 |xit view|-exit vi|
|00002490| 65 77 2d 77 69 6e 64 6f | 77 2d 73 69 7a 65 20 73 |ew-windo|w-size s|
|000024a0| 63 72 6f 6c 6c 2d 75 70 | 20 6e 69 6c 20 73 63 72 |croll-up| nil scr|
|000024b0| 6f 6c 6c 2d 64 6f 77 6e | 20 6d 65 73 73 61 67 65 |oll-down| message|
|000024c0| 20 22 25 73 22 20 73 75 | 62 73 74 69 74 75 74 65 | "%s" su|bstitute|
|000024d0| 2d 63 6f 6d 6d 61 6e 64 | 2d 6b 65 79 73 20 22 45 |-command|-keys "E|
|000024e0| 6e 64 2e 20 20 54 79 70 | 65 20 5c 5c 5b 76 69 65 |nd. Typ|e \\[vie|
|000024f0| 77 2d 65 78 69 74 5d 20 | 74 6f 20 71 75 69 74 20 |w-exit] |to quit |
|00002500| 76 69 65 77 69 6e 67 2e | 22 20 6d 6f 76 65 2d 74 |viewing.|" move-t|
|00002510| 6f 2d 77 69 6e 64 6f 77 | 2d 6c 69 6e 65 20 2d 31 |o-window|-line -1|
|00002520| 5d 20 34 20 28 23 24 20 | 2e 20 38 39 30 31 29 20 |] 4 (#$ |. 8901) |
|00002530| 22 50 22 5d 29 0a 23 40 | 34 38 37 20 53 63 72 6f |"P"]).#@|487 Scro|
|00002540| 6c 6c 20 66 6f 72 77 61 | 72 64 20 4c 49 4e 45 53 |ll forwa|rd LINES|
|00002550| 20 6c 69 6e 65 73 20 69 | 6e 20 56 69 65 77 20 6d | lines i|n View m|
|00002560| 6f 64 65 2c 20 73 65 74 | 74 69 6e 67 20 74 68 65 |ode, set|ting the|
|00002570| 20 22 73 63 72 6f 6c 6c | 20 73 69 7a 65 22 2e 0a | "scroll| size"..|
|00002580| 54 68 69 73 20 69 73 20 | 74 68 65 20 6e 75 6d 62 |This is |the numb|
|00002590| 65 72 20 6f 66 20 6c 69 | 6e 65 73 20 77 68 69 63 |er of li|nes whic|
|000025a0| 68 20 5c 5b 56 69 65 77 | 2d 73 63 72 6f 6c 6c 2d |h \[View|-scroll-|
|000025b0| 6c 69 6e 65 73 2d 66 6f | 72 77 61 72 64 5d 20 61 |lines-fo|rward] a|
|000025c0| 6e 64 20 5c 5b 56 69 65 | 77 2d 73 63 72 6f 6c 6c |nd \[Vie|w-scroll|
|000025d0| 2d 6c 69 6e 65 73 2d 62 | 61 63 6b 77 61 72 64 5d |-lines-b|ackward]|
|000025e0| 20 73 63 72 6f 6c 6c 20 | 62 79 20 64 65 66 61 75 | scroll |by defau|
|000025f0| 6c 74 2e 0a 54 68 65 20 | 61 62 73 6f 6c 75 74 65 |lt..The |absolute|
|00002600| 20 76 61 6c 75 65 20 6f | 66 20 4c 49 4e 45 53 20 | value o|f LINES |
|00002610| 69 73 20 75 73 65 64 2c | 20 73 6f 20 74 68 69 73 |is used,| so this|
|00002620| 20 63 6f 6d 6d 61 6e 64 | 20 63 61 6e 20 62 65 20 | command| can be |
|00002630| 75 73 65 64 20 74 6f 20 | 73 63 72 6f 6c 6c 0a 62 |used to |scroll.b|
|00002640| 61 63 6b 77 61 72 64 73 | 20 28 62 75 74 20 22 73 |ackwards| (but "s|
|00002650| 63 72 6f 6c 6c 20 73 69 | 7a 65 22 20 69 73 20 61 |croll si|ze" is a|
|00002660| 6c 77 61 79 73 20 70 6f | 73 69 74 69 76 65 29 2e |lways po|sitive).|
|00002670| 20 20 49 66 20 4c 49 4e | 45 53 20 69 73 20 67 72 | If LIN|ES is gr|
|00002680| 65 61 74 65 72 20 74 68 | 61 6e 0a 77 69 6e 64 6f |eater th|an.windo|
|00002690| 77 20 68 65 69 67 68 74 | 20 6f 72 20 6f 6d 69 74 |w height| or omit|
|000026a0| 74 65 64 2c 20 74 68 65 | 6e 20 77 69 6e 64 6f 77 |ted, the|n window|
|000026b0| 20 68 65 69 67 68 74 20 | 69 73 20 61 73 73 75 6d | height |is assum|
|000026c0| 65 64 2e 20 20 49 66 20 | 4c 49 4e 45 53 20 69 73 |ed. If |LINES is|
|000026d0| 20 6c 65 73 73 0a 74 68 | 61 6e 20 77 69 6e 64 6f | less.th|an windo|
|000026e0| 77 20 68 65 69 67 68 74 | 20 74 68 65 6e 20 73 63 |w height| then sc|
|000026f0| 72 6f 6c 6c 69 6e 67 20 | 63 6f 6e 74 65 78 74 20 |rolling |context |
|00002700| 69 73 20 70 72 6f 76 69 | 64 65 64 20 66 72 6f 6d |is provi|ded from|
|00002710| 20 70 72 65 76 69 6f 75 | 73 20 73 63 72 65 65 6e | previou|s screen|
|00002720| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 56 69 |...(defa|lias 'Vi|
|00002730| 65 77 2d 73 63 72 6f 6c | 6c 2d 6c 69 6e 65 73 2d |ew-scrol|l-lines-|
|00002740| 66 6f 72 77 61 72 64 2d | 73 65 74 2d 73 63 72 6f |forward-|set-scro|
|00002750| 6c 6c 2d 73 69 7a 65 20 | 23 5b 28 26 6f 70 74 69 |ll-size |#[(&opti|
|00002760| 6f 6e 61 6c 20 6c 69 6e | 65 73 29 20 22 08 84 5c |onal lin|es) "..\|
|00002770| 6e 00 c1 20 12 82 1e 00 | c3 08 21 89 10 c4 56 83 |n.. ....|..!...V.|
|00002780| 18 00 08 82 1a 00 08 5b | c1 20 5e 12 c5 08 21 87 |.......[|. ^...!.|
|00002790| 22 20 5b 6c 69 6e 65 73 | 20 76 69 65 77 2d 77 69 |" [lines| view-wi|
|000027a0| 6e 64 6f 77 2d 73 69 7a | 65 20 76 69 65 77 2d 73 |ndow-siz|e view-s|
|000027b0| 63 72 6f 6c 6c 2d 73 69 | 7a 65 20 70 72 65 66 69 |croll-si|ze prefi|
|000027c0| 78 2d 6e 75 6d 65 72 69 | 63 2d 76 61 6c 75 65 20 |x-numeri|c-value |
|000027d0| 30 20 56 69 65 77 2d 73 | 63 72 6f 6c 6c 2d 6c 69 |0 View-s|croll-li|
|000027e0| 6e 65 73 2d 66 6f 72 77 | 61 72 64 5d 20 33 20 28 |nes-forw|ard] 3 (|
|000027f0| 23 24 20 2e 20 39 35 33 | 32 29 20 22 50 22 5d 29 |#$ . 953|2) "P"])|
|00002800| 0a 23 40 37 30 20 53 63 | 72 6f 6c 6c 20 6f 6e 65 |.#@70 Sc|roll one|
|00002810| 20 6d 6f 72 65 20 6c 69 | 6e 65 20 75 70 20 69 6e | more li|ne up in|
|00002820| 20 56 69 65 77 20 6d 6f | 64 65 2e 0a 57 69 74 68 | View mo|de..With|
|00002830| 20 41 52 47 20 73 63 72 | 6f 6c 6c 20 6f 6e 65 20 | ARG scr|oll one |
|00002840| 6c 69 6e 65 20 64 6f 77 | 6e 2e 1f 0a 28 64 65 66 |line dow|n...(def|
|00002850| 61 6c 69 61 73 20 27 56 | 69 65 77 2d 73 63 72 6f |alias 'V|iew-scro|
|00002860| 6c 6c 2d 6f 6e 65 2d 6d | 6f 72 65 2d 6c 69 6e 65 |ll-one-m|ore-line|
|00002870| 20 23 5b 28 26 6f 70 74 | 69 6f 6e 61 6c 20 61 72 | #[(&opt|ional ar|
|00002880| 67 29 20 22 c0 09 84 09 | 00 c2 82 5c 6e 00 c3 21 |g) "....|...\n..!|
|00002890| 87 22 20 5b 56 69 65 77 | 2d 73 63 72 6f 6c 6c 2d |." [View|-scroll-|
|000028a0| 6c 69 6e 65 73 2d 66 6f | 72 77 61 72 64 20 61 72 |lines-fo|rward ar|
|000028b0| 67 20 31 20 2d 31 5d 20 | 32 20 28 23 24 20 2e 20 |g 1 -1] |2 (#$ . |
|000028c0| 31 30 32 34 36 29 20 22 | 50 22 5d 29 0a 23 40 31 |10246) "|P"]).#@1|
|000028d0| 36 39 20 53 63 72 6f 6c | 6c 20 62 61 63 6b 77 61 |69 Scrol|l backwa|
|000028e0| 72 64 20 69 6e 20 56 69 | 65 77 20 6d 6f 64 65 2e |rd in Vi|ew mode.|
|000028f0| 0a 4e 6f 20 61 72 67 20 | 6d 65 61 6e 73 20 77 68 |.No arg |means wh|
|00002900| 6f 6c 65 20 77 69 6e 64 | 6f 77 20 66 75 6c 6c 2c |ole wind|ow full,|
|00002910| 20 6f 72 20 6e 75 6d 62 | 65 72 20 6f 66 20 6c 69 | or numb|er of li|
|00002920| 6e 65 73 20 73 65 74 20 | 62 79 20 5c 5b 56 69 65 |nes set |by \[Vie|
|00002930| 77 2d 73 63 72 6f 6c 6c | 2d 6c 69 6e 65 73 2d 66 |w-scroll|-lines-f|
|00002940| 6f 72 77 61 72 64 2d 73 | 65 74 2d 73 63 72 6f 6c |orward-s|et-scrol|
|00002950| 6c 2d 73 69 7a 65 5d 2e | 0a 41 72 67 20 69 73 20 |l-size].|.Arg is |
|00002960| 6e 75 6d 62 65 72 20 6f | 66 20 6c 69 6e 65 73 20 |number o|f lines |
|00002970| 74 6f 20 73 63 72 6f 6c | 6c 2e 1f 0a 28 64 65 66 |to scrol|l...(def|
|00002980| 61 6c 69 61 73 20 27 56 | 69 65 77 2d 73 63 72 6f |alias 'V|iew-scro|
|00002990| 6c 6c 2d 6c 69 6e 65 73 | 2d 62 61 63 6b 77 61 72 |ll-lines|-backwar|
|000029a0| 64 20 23 5b 28 26 6f 70 | 74 69 6f 6e 61 6c 20 6c |d #[(&op|tional l|
|000029b0| 69 6e 65 73 29 20 22 c0 | 09 83 5c 66 00 c2 09 21 |ines) ".|..\f...!|
|000029c0| 5b 82 0f 00 c3 20 5b 21 | 87 22 20 5b 56 69 65 77 |[.... [!|." [View|
|000029d0| 2d 73 63 72 6f 6c 6c 2d | 6c 69 6e 65 73 2d 66 6f |-scroll-|lines-fo|
|000029e0| 72 77 61 72 64 20 6c 69 | 6e 65 73 20 70 72 65 66 |rward li|nes pref|
|000029f0| 69 78 2d 6e 75 6d 65 72 | 69 63 2d 76 61 6c 75 65 |ix-numer|ic-value|
|00002a00| 20 76 69 65 77 2d 73 63 | 72 6f 6c 6c 2d 73 69 7a | view-sc|roll-siz|
|00002a10| 65 5d 20 33 20 28 23 24 | 20 2e 20 31 30 34 35 31 |e] 3 (#$| . 10451|
|00002a20| 29 20 22 50 22 5d 29 0a | 23 40 33 36 37 20 53 65 |) "P"]).|#@367 Se|
|00002a30| 61 72 63 68 20 66 6f 72 | 77 61 72 64 20 66 6f 72 |arch for|ward for|
|00002a40| 20 4e 74 68 20 6f 63 63 | 75 72 72 65 6e 63 65 20 | Nth occ|urrence |
|00002a50| 6f 66 20 52 45 47 45 58 | 50 2e 0a 44 69 73 70 6c |of REGEX|P..Displ|
|00002a60| 61 79 73 20 6c 69 6e 65 | 20 66 6f 75 6e 64 20 61 |ays line| found a|
|00002a70| 74 20 63 65 6e 74 65 72 | 20 6f 66 20 77 69 6e 64 |t center| of wind|
|00002a80| 6f 77 2e 20 20 52 45 47 | 45 58 50 20 69 73 20 72 |ow. REG|EXP is r|
|00002a90| 65 6d 65 6d 62 65 72 65 | 64 20 66 6f 72 0a 73 65 |emembere|d for.se|
|00002aa0| 61 72 63 68 69 6e 67 20 | 77 69 74 68 20 5c 5b 56 |arching |with \[V|
|00002ab0| 69 65 77 2d 73 65 61 72 | 63 68 2d 6c 61 73 74 2d |iew-sear|ch-last-|
|00002ac0| 72 65 67 65 78 70 2d 66 | 6f 72 77 61 72 64 5d 20 |regexp-f|orward] |
|00002ad0| 61 6e 64 20 5c 5b 56 69 | 65 77 2d 73 65 61 72 63 |and \[Vi|ew-searc|
|00002ae0| 68 2d 6c 61 73 74 2d 72 | 65 67 65 78 70 2d 62 61 |h-last-r|egexp-ba|
|00002af0| 63 6b 77 61 72 64 5d 2e | 20 20 53 65 74 73 20 6d |ckward].| Sets m|
|00002b00| 61 72 6b 20 61 74 20 73 | 74 61 72 74 69 6e 67 20 |ark at s|tarting |
|00002b10| 70 6f 73 69 74 69 6f 6e | 20 61 6e 64 20 70 75 73 |position| and pus|
|00002b20| 68 65 73 20 6d 61 72 6b | 20 72 69 6e 67 2e 0a 0a |hes mark| ring...|
|00002b30| 54 68 65 20 76 61 72 69 | 61 62 6c 65 20 60 76 69 |The vari|able `vi|
|00002b40| 65 77 2d 68 69 67 68 6c | 69 67 68 74 2d 66 61 63 |ew-highl|ight-fac|
|00002b50| 65 27 20 63 6f 6e 74 72 | 6f 6c 73 20 74 68 65 20 |e' contr|ols the |
|00002b60| 66 61 63 65 20 74 68 61 | 74 20 69 73 20 75 73 65 |face tha|t is use|
|00002b70| 64 0a 66 6f 72 20 68 69 | 67 68 6c 69 67 68 74 69 |d.for hi|ghlighti|
|00002b80| 6e 67 20 74 68 65 20 6d | 61 74 63 68 20 74 68 61 |ng the m|atch tha|
|00002b90| 74 20 69 73 20 66 6f 75 | 6e 64 2e 1f 0a 28 64 65 |t is fou|nd...(de|
|00002ba0| 66 61 6c 69 61 73 20 27 | 56 69 65 77 2d 73 65 61 |falias '|View-sea|
|00002bb0| 72 63 68 2d 72 65 67 65 | 78 70 2d 66 6f 72 77 61 |rch-rege|xp-forwa|
|00002bc0| 72 64 20 23 5b 28 6e 20 | 72 65 67 65 78 70 29 20 |rd #[(n |regexp) |
|00002bd0| 22 c0 09 5c 6e c3 9a 83 | 5c 66 00 5c 66 82 0d 00 |"..\n...|\f.\f...|
|00002be0| 5c 6e 5c 22 87 22 20 5b | 76 69 65 77 2d 73 65 61 |\n\"." [|view-sea|
|00002bf0| 72 63 68 20 6e 20 72 65 | 67 65 78 70 20 22 22 20 |rch n re|gexp "" |
|00002c00| 76 69 65 77 2d 6c 61 73 | 74 2d 72 65 67 65 78 70 |view-las|t-regexp|
|00002c10| 5d 20 34 20 28 23 24 20 | 2e 20 31 30 37 39 38 29 |] 4 (#$ |. 10798)|
|00002c20| 20 22 70 5c 6e 73 53 65 | 61 72 63 68 20 66 6f 72 | "p\nsSe|arch for|
|00002c30| 77 61 72 64 20 28 72 65 | 67 65 78 70 29 3a 20 22 |ward (re|gexp): "|
|00002c40| 5d 29 0a 23 40 33 38 34 | 20 53 65 61 72 63 68 20 |]).#@384| Search |
|00002c50| 62 61 63 6b 77 61 72 64 | 20 66 72 6f 6d 20 77 69 |backward| from wi|
|00002c60| 6e 64 6f 77 20 73 74 61 | 72 74 20 66 6f 72 20 4e |ndow sta|rt for N|
|00002c70| 74 68 20 69 6e 73 74 61 | 6e 63 65 20 6f 66 20 52 |th insta|nce of R|
|00002c80| 45 47 45 58 50 2e 0a 44 | 69 73 70 6c 61 79 73 20 |EGEXP..D|isplays |
|00002c90| 6c 69 6e 65 20 66 6f 75 | 6e 64 20 61 74 20 63 65 |line fou|nd at ce|
|00002ca0| 6e 74 65 72 20 6f 66 20 | 77 69 6e 64 6f 77 2e 20 |nter of |window. |
|00002cb0| 20 52 45 47 45 58 50 20 | 69 73 20 72 65 6d 65 6d | REGEXP |is remem|
|00002cc0| 62 65 72 65 64 20 66 6f | 72 0a 73 65 61 72 63 68 |bered fo|r.search|
|00002cd0| 69 6e 67 20 77 69 74 68 | 20 5c 5b 56 69 65 77 2d |ing with| \[View-|
|00002ce0| 73 65 61 72 63 68 2d 6c | 61 73 74 2d 72 65 67 65 |search-l|ast-rege|
|00002cf0| 78 70 2d 66 6f 72 77 61 | 72 64 5d 20 61 6e 64 20 |xp-forwa|rd] and |
|00002d00| 5c 5b 56 69 65 77 2d 73 | 65 61 72 63 68 2d 6c 61 |\[View-s|earch-la|
|00002d10| 73 74 2d 72 65 67 65 78 | 70 2d 62 61 63 6b 77 61 |st-regex|p-backwa|
|00002d20| 72 64 5d 2e 20 20 53 65 | 74 73 20 6d 61 72 6b 20 |rd]. Se|ts mark |
|00002d30| 61 74 20 73 74 61 72 74 | 69 6e 67 20 70 6f 73 69 |at start|ing posi|
|00002d40| 74 69 6f 6e 20 61 6e 64 | 20 70 75 73 68 65 73 20 |tion and| pushes |
|00002d50| 6d 61 72 6b 20 72 69 6e | 67 2e 0a 0a 54 68 65 20 |mark rin|g...The |
|00002d60| 76 61 72 69 61 62 6c 65 | 20 60 76 69 65 77 2d 68 |variable| `view-h|
|00002d70| 69 67 68 6c 69 67 68 74 | 2d 66 61 63 65 27 20 63 |ighlight|-face' c|
|00002d80| 6f 6e 74 72 6f 6c 73 20 | 74 68 65 20 66 61 63 65 |ontrols |the face|
|00002d90| 20 74 68 61 74 20 69 73 | 20 75 73 65 64 0a 66 6f | that is| used.fo|
|00002da0| 72 20 68 69 67 68 6c 69 | 67 68 74 69 6e 67 20 74 |r highli|ghting t|
|00002db0| 68 65 20 6d 61 74 63 68 | 20 74 68 61 74 20 69 73 |he match| that is|
|00002dc0| 20 66 6f 75 6e 64 2e 1f | 0a 28 64 65 66 61 6c 69 | found..|.(defali|
|00002dd0| 61 73 20 27 56 69 65 77 | 2d 73 65 61 72 63 68 2d |as 'View|-search-|
|00002de0| 72 65 67 65 78 70 2d 62 | 61 63 6b 77 61 72 64 20 |regexp-b|ackward |
|00002df0| 23 5b 28 6e 20 72 65 67 | 65 78 70 29 20 22 c0 09 |#[(n reg|exp) "..|
|00002e00| 5b 5c 6e c3 9a 83 0d 00 | 5c 66 82 0e 00 5c 6e 5c |[\n.....|\f...\n\|
|00002e10| 22 87 22 20 5b 56 69 65 | 77 2d 73 65 61 72 63 68 |"." [Vie|w-search|
|00002e20| 2d 72 65 67 65 78 70 2d | 66 6f 72 77 61 72 64 20 |-regexp-|forward |
|00002e30| 6e 20 72 65 67 65 78 70 | 20 22 22 20 76 69 65 77 |n regexp| "" view|
|00002e40| 2d 6c 61 73 74 2d 72 65 | 67 65 78 70 5d 20 34 20 |-last-re|gexp] 4 |
|00002e50| 28 23 24 20 2e 20 31 31 | 33 33 37 29 20 22 70 5c |(#$ . 11|337) "p\|
|00002e60| 6e 73 53 65 61 72 63 68 | 20 62 61 63 6b 77 61 72 |nsSearch| backwar|
|00002e70| 64 20 28 72 65 67 65 78 | 70 29 3a 20 22 5d 29 0a |d (regex|p): "]).|
|00002e80| 23 40 32 36 39 20 53 65 | 61 72 63 68 20 66 6f 72 |#@269 Se|arch for|
|00002e90| 77 61 72 64 20 66 72 6f | 6d 20 77 69 6e 64 6f 77 |ward fro|m window|
|00002ea0| 20 65 6e 64 20 66 6f 72 | 20 4e 74 68 20 69 6e 73 | end for| Nth ins|
|00002eb0| 74 61 6e 63 65 20 6f 66 | 20 6c 61 73 74 20 72 65 |tance of| last re|
|00002ec0| 67 65 78 70 2e 0a 44 69 | 73 70 6c 61 79 73 20 6c |gexp..Di|splays l|
|00002ed0| 69 6e 65 20 66 6f 75 6e | 64 20 61 74 20 63 65 6e |ine foun|d at cen|
|00002ee0| 74 65 72 20 6f 66 20 77 | 69 6e 64 6f 77 2e 20 20 |ter of w|indow. |
|00002ef0| 53 65 74 73 20 6d 61 72 | 6b 20 61 74 20 73 74 61 |Sets mar|k at sta|
|00002f00| 72 74 69 6e 67 20 70 6f | 73 69 74 69 6f 6e 0a 61 |rting po|sition.a|
|00002f10| 6e 64 20 70 75 73 68 65 | 73 20 6d 61 72 6b 20 72 |nd pushe|s mark r|
|00002f20| 69 6e 67 2e 0a 0a 54 68 | 65 20 76 61 72 69 61 62 |ing...Th|e variab|
|00002f30| 6c 65 20 60 76 69 65 77 | 2d 68 69 67 68 6c 69 67 |le `view|-highlig|
|00002f40| 68 74 2d 66 61 63 65 27 | 20 63 6f 6e 74 72 6f 6c |ht-face'| control|
|00002f50| 73 20 74 68 65 20 66 61 | 63 65 20 74 68 61 74 20 |s the fa|ce that |
|00002f60| 69 73 20 75 73 65 64 0a | 66 6f 72 20 68 69 67 68 |is used.|for high|
|00002f70| 6c 69 67 68 74 69 6e 67 | 20 74 68 65 20 6d 61 74 |lighting| the mat|
|00002f80| 63 68 20 74 68 61 74 20 | 69 73 20 66 6f 75 6e 64 |ch that |is found|
|00002f90| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 56 69 |...(defa|lias 'Vi|
|00002fa0| 65 77 2d 73 65 61 72 63 | 68 2d 6c 61 73 74 2d 72 |ew-searc|h-last-r|
|00002fb0| 65 67 65 78 70 2d 66 6f | 72 77 61 72 64 20 23 5b |egexp-fo|rward #[|
|00002fc0| 28 6e 29 20 22 08 83 09 | 00 c1 5c 6e 08 5c 22 87 |(n) "...|..\n.\".|
|00002fd0| c3 c4 21 87 22 20 5b 76 | 69 65 77 2d 6c 61 73 74 |..!." [v|iew-last|
|00002fe0| 2d 72 65 67 65 78 70 20 | 56 69 65 77 2d 73 65 61 |-regexp |View-sea|
|00002ff0| 72 63 68 2d 72 65 67 65 | 78 70 2d 66 6f 72 77 61 |rch-rege|xp-forwa|
|00003000| 72 64 20 6e 20 65 72 72 | 6f 72 20 22 4e 6f 20 70 |rd n err|or "No p|
|00003010| 72 65 76 69 6f 75 73 20 | 56 69 65 77 2d 6d 6f 64 |revious |View-mod|
|00003020| 65 20 73 65 61 72 63 68 | 22 5d 20 33 20 28 23 24 |e search|"] 3 (#$|
|00003030| 20 2e 20 31 31 39 31 30 | 29 20 22 70 22 5d 29 0a | . 11910|) "p"]).|
|00003040| 23 40 32 37 32 20 53 65 | 61 72 63 68 20 62 61 63 |#@272 Se|arch bac|
|00003050| 6b 77 61 72 64 20 66 72 | 6f 6d 20 77 69 6e 64 6f |kward fr|om windo|
|00003060| 77 20 73 74 61 72 74 20 | 66 6f 72 20 4e 74 68 20 |w start |for Nth |
|00003070| 69 6e 73 74 61 6e 63 65 | 20 6f 66 20 6c 61 73 74 |instance| of last|
|00003080| 20 72 65 67 65 78 70 2e | 0a 44 69 73 70 6c 61 79 | regexp.|.Display|
|00003090| 73 20 6c 69 6e 65 20 66 | 6f 75 6e 64 20 61 74 20 |s line f|ound at |
|000030a0| 63 65 6e 74 65 72 20 6f | 66 20 77 69 6e 64 6f 77 |center o|f window|
|000030b0| 2e 20 20 53 65 74 73 20 | 6d 61 72 6b 20 61 74 20 |. Sets |mark at |
|000030c0| 73 74 61 72 74 69 6e 67 | 20 70 6f 73 69 74 69 6f |starting| positio|
|000030d0| 6e 20 61 6e 64 0a 70 75 | 73 68 65 73 20 6d 61 72 |n and.pu|shes mar|
|000030e0| 6b 20 72 69 6e 67 2e 0a | 0a 54 68 65 20 76 61 72 |k ring..|.The var|
|000030f0| 69 61 62 6c 65 20 60 76 | 69 65 77 2d 68 69 67 68 |iable `v|iew-high|
|00003100| 6c 69 67 68 74 2d 66 61 | 63 65 27 20 63 6f 6e 74 |light-fa|ce' cont|
|00003110| 72 6f 6c 73 20 74 68 65 | 20 66 61 63 65 20 74 68 |rols the| face th|
|00003120| 61 74 20 69 73 20 75 73 | 65 64 0a 66 6f 72 20 68 |at is us|ed.for h|
|00003130| 69 67 68 6c 69 67 68 74 | 69 6e 67 20 74 68 65 20 |ighlight|ing the |
|00003140| 6d 61 74 63 68 20 74 68 | 61 74 20 69 73 20 66 6f |match th|at is fo|
|00003150| 75 6e 64 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |und...(d|efalias |
|00003160| 27 56 69 65 77 2d 73 65 | 61 72 63 68 2d 6c 61 73 |'View-se|arch-las|
|00003170| 74 2d 72 65 67 65 78 70 | 2d 62 61 63 6b 77 61 72 |t-regexp|-backwar|
|00003180| 64 20 23 5b 28 6e 29 20 | 22 08 83 09 00 c1 5c 6e |d #[(n) |".....\n|
|00003190| 08 5c 22 87 c3 c4 21 87 | 22 20 5b 76 69 65 77 2d |.\"...!.|" [view-|
|000031a0| 6c 61 73 74 2d 72 65 67 | 65 78 70 20 56 69 65 77 |last-reg|exp View|
|000031b0| 2d 73 65 61 72 63 68 2d | 72 65 67 65 78 70 2d 62 |-search-|regexp-b|
|000031c0| 61 63 6b 77 61 72 64 20 | 6e 20 65 72 72 6f 72 20 |ackward |n error |
|000031d0| 22 4e 6f 20 70 72 65 76 | 69 6f 75 73 20 56 69 65 |"No prev|ious Vie|
|000031e0| 77 2d 6d 6f 64 65 20 73 | 65 61 72 63 68 22 5d 20 |w-mode s|earch"] |
|000031f0| 33 20 28 23 24 20 2e 20 | 31 32 33 35 38 29 20 22 |3 (#$ . |12358) "|
|00003200| 70 22 5d 29 0a 23 40 31 | 36 35 20 52 65 74 75 72 |p"]).#@1|65 Retur|
|00003210| 6e 20 74 6f 20 6c 61 73 | 74 20 6d 61 72 6b 20 73 |n to las|t mark s|
|00003220| 65 74 20 69 6e 20 56 69 | 65 77 20 6d 6f 64 65 2c |et in Vi|ew mode,|
|00003230| 20 65 6c 73 65 20 62 65 | 67 69 6e 6e 69 6e 67 20 | else be|ginning |
|00003240| 6f 66 20 66 69 6c 65 2e | 0a 44 69 73 70 6c 61 79 |of file.|.Display|
|00003250| 73 20 6c 69 6e 65 20 61 | 74 20 63 65 6e 74 65 72 |s line a|t center|
|00003260| 20 6f 66 20 77 69 6e 64 | 6f 77 2e 20 20 50 6f 70 | of wind|ow. Pop|
|00003270| 73 20 6d 61 72 6b 20 72 | 69 6e 67 20 73 6f 20 73 |s mark r|ing so s|
|00003280| 75 63 63 65 73 73 69 76 | 65 0a 69 6e 76 6f 63 61 |uccessiv|e.invoca|
|00003290| 74 69 6f 6e 73 20 72 65 | 74 75 72 6e 20 74 6f 20 |tions re|turn to |
|000032a0| 65 61 72 6c 69 65 72 20 | 6d 61 72 6b 73 2e 1f 0a |earlier |marks...|
|000032b0| 28 64 65 66 61 6c 69 61 | 73 20 27 56 69 65 77 2d |(defalia|s 'View-|
|000032c0| 62 61 63 6b 2d 74 6f 2d | 6d 61 72 6b 20 23 5b 28 |back-to-|mark #[(|
|000032d0| 26 6f 70 74 69 6f 6e 61 | 6c 20 69 67 6e 6f 72 65 |&optiona|l ignore|
|000032e0| 29 20 22 c0 c1 21 86 07 | 00 65 62 88 c2 20 88 c3 |) "..!..|.eb.. ..|
|000032f0| c4 20 c5 a5 21 87 22 20 | 5b 6d 61 72 6b 20 74 20 |. ..!." |[mark t |
|00003300| 70 6f 70 2d 6d 61 72 6b | 20 72 65 63 65 6e 74 65 |pop-mark| recente|
|00003310| 72 20 76 69 65 77 2d 77 | 69 6e 64 6f 77 2d 73 69 |r view-w|indow-si|
|00003320| 7a 65 20 32 5d 20 33 20 | 28 23 24 20 2e 20 31 32 |ze 2] 3 |(#$ . 12|
|00003330| 38 31 31 29 20 6e 69 6c | 5d 29 0a 28 64 65 66 61 |811) nil|]).(defa|
|00003340| 6c 69 61 73 20 27 76 69 | 65 77 2d 73 65 61 72 63 |lias 'vi|ew-searc|
|00003350| 68 20 23 5b 28 74 69 6d | 65 73 20 72 65 67 65 78 |h #[(tim|es regex|
|00003360| 70 29 20 22 08 11 c2 1b | 8a c4 0d c6 57 83 10 00 |p) "....|....W...|
|00003370| c6 82 11 00 c7 21 88 c8 | 08 c2 c9 0d 24 83 1e 00 |.....!..|....$...|
|00003380| 60 13 29 0b 83 56 00 ca | 20 88 0b 62 88 0e 0b 83 |`.)..V..| ..b....|
|00003390| 3a 00 cc 0e 0b c6 94 c6 | 95 23 88 82 42 00 cd c6 |:.......|.#..B...|
|000033a0| 94 c6 95 5c 22 16 0b ce | 0e 0b cf 0e 10 23 88 c6 |...\"...|.....#..|
|000033b0| 79 88 d1 d2 20 d3 a5 21 | 82 5f 00 d4 d5 0d 08 23 |y... ..!|._.....#|
|000033c0| 88 d6 d7 21 29 87 22 20 | 5b 72 65 67 65 78 70 20 |...!)." |[regexp |
|000033d0| 76 69 65 77 2d 6c 61 73 | 74 2d 72 65 67 65 78 70 |view-las|t-regexp|
|000033e0| 20 6e 69 6c 20 77 68 65 | 72 65 20 6d 6f 76 65 2d | nil whe|re move-|
|000033f0| 74 6f 2d 77 69 6e 64 6f | 77 2d 6c 69 6e 65 20 74 |to-windo|w-line t|
|00003400| 69 6d 65 73 20 30 20 2d | 31 20 72 65 2d 73 65 61 |imes 0 -|1 re-sea|
|00003410| 72 63 68 2d 66 6f 72 77 | 61 72 64 20 74 20 70 75 |rch-forw|ard t pu|
|00003420| 73 68 2d 6d 61 72 6b 20 | 76 69 65 77 2d 6f 76 65 |sh-mark |view-ove|
|00003430| 72 6c 61 79 20 6d 6f 76 | 65 2d 6f 76 65 72 6c 61 |rlay mov|e-overla|
|00003440| 79 20 6d 61 6b 65 2d 6f | 76 65 72 6c 61 79 20 6f |y make-o|verlay o|
|00003450| 76 65 72 6c 61 79 2d 70 | 75 74 20 66 61 63 65 20 |verlay-p|ut face |
|00003460| 76 69 65 77 2d 68 69 67 | 68 6c 69 67 68 74 2d 66 |view-hig|hlight-f|
|00003470| 61 63 65 20 72 65 63 65 | 6e 74 65 72 20 76 69 65 |ace rece|nter vie|
|00003480| 77 2d 77 69 6e 64 6f 77 | 2d 73 69 7a 65 20 32 20 |w-window|-size 2 |
|00003490| 6d 65 73 73 61 67 65 20 | 22 43 61 6e 27 74 20 66 |message |"Can't f|
|000034a0| 69 6e 64 20 6f 63 63 75 | 72 72 65 6e 63 65 20 25 |ind occu|rrence %|
|000034b0| 64 20 6f 66 20 25 73 22 | 20 73 69 74 2d 66 6f 72 |d of %s"| sit-for|
|000034c0| 20 34 5d 20 35 5d 29 0a | 28 70 72 6f 76 69 64 65 | 4] 5]).|(provide|
|000034d0| 20 28 71 75 6f 74 65 20 | 76 69 65 77 29 29 0a | (quote |view)). |
+--------+-------------------------+-------------------------+--------+--------+